diff options
Diffstat (limited to 'services')
-rw-r--r-- | services/logind.nix | 8 | ||||
-rw-r--r-- | services/upower.nix | 4 |
2 files changed, 12 insertions, 0 deletions
diff --git a/services/logind.nix b/services/logind.nix new file mode 100644 index 0000000..83fd9cf --- /dev/null +++ b/services/logind.nix @@ -0,0 +1,8 @@ +{ ... }: +{ + services.logind = { + lidSwitch = "suspend"; + lidSwitchDocked = "ignore"; + lidSwitchExternalPower = "ignore"; + }; +} diff --git a/services/upower.nix b/services/upower.nix new file mode 100644 index 0000000..03997e1 --- /dev/null +++ b/services/upower.nix @@ -0,0 +1,4 @@ +{ ... }: +{ + services.upower.ignoreLid = true; +} |