diff --git a/system/default.nix b/system/default.nix index f33efbe..6ff66c8 100644 --- a/system/default.nix +++ b/system/default.nix @@ -19,8 +19,8 @@ let laptop = common ++ [ - ./hardware/power.nix ./hardware/fprintd.nix + ./services/power.nix ./services/keyd.nix ]; in { diff --git a/system/hardware/power.nix b/system/hardware/power.nix deleted file mode 100644 index dd79035..0000000 --- a/system/hardware/power.nix +++ /dev/null @@ -1,3 +0,0 @@ -{ - services.power-profiles-daemon.enable = true; -} diff --git a/system/services/power.nix b/system/services/power.nix new file mode 100644 index 0000000..299522b --- /dev/null +++ b/system/services/power.nix @@ -0,0 +1,12 @@ +{ + services = { + logind.extraConfig = '' + HandlePowerKey=suspend + ''; + + power-profiles-daemon.enable = true; + + # battery info + upower.enable = true; + }; +}