diff options
author | Kenny Ballou <kb@devnulllabs.io> | 2021-05-12 12:47:49 -0600 |
---|---|---|
committer | Kenny Ballou <kb@devnulllabs.io> | 2021-05-12 12:47:49 -0600 |
commit | 7f5e5c6c12d5268549522a5907d09e6538f9a4b6 (patch) | |
tree | 159b3b23917e7b623b8b88ae36e5ca98314eae92 /services | |
parent | 55ee1c06d3105b4f97fd19210c4cd1dac6e07832 (diff) | |
download | cfg.nix-7f5e5c6c12d5268549522a5907d09e6538f9a4b6.tar.gz cfg.nix-7f5e5c6c12d5268549522a5907d09e6538f9a4b6.tar.xz |
fix clamshell mode
This may not be the universally applicable way to enable clamshell
mode. But this works for lemp10.
Signed-off-by: Kenny Ballou <kb@devnulllabs.io>
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; +} |