Anthony Rodriguez
2b77ac239e
Moved every service in their own module, and conditionally enable them based on profiles.
14 lines
212 B
Nix
14 lines
212 B
Nix
{
|
|
lib,
|
|
config,
|
|
...
|
|
}: {
|
|
config = lib.mkIf config.local.profiles.laptop.enable {
|
|
services = {
|
|
power-profiles-daemon.enable = true;
|
|
|
|
# battery info
|
|
upower.enable = true;
|
|
};
|
|
};
|
|
}
|