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 | |
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>
-rw-r--r-- | daeva/configuration.nix | 2 | ||||
-rw-r--r-- | services/logind.nix | 8 | ||||
-rw-r--r-- | services/upower.nix | 4 |
3 files changed, 14 insertions, 0 deletions
diff --git a/daeva/configuration.nix b/daeva/configuration.nix index daa5847..725b081 100644 --- a/daeva/configuration.nix +++ b/daeva/configuration.nix @@ -18,12 +18,14 @@ ../services/firewall.nix ../services/gnome.nix ../services/haveged.nix + ../services/logind.nix ../services/podman.nix ../services/printing.nix ../services/sound.nix ../services/x11-intel.nix ../services/x11-laptop.nix ../services/x11.nix + ../services/upower.nix ../system/bluetooth.nix ../system/ca.nix ../system/console.nix 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; +} |