diff --git a/host/x86_64-linux/pocket/Logind.nix b/host/x86_64-linux/pocket/Logind.nix index 6d5aa2d0..a5730e50 100644 --- a/host/x86_64-linux/pocket/Logind.nix +++ b/host/x86_64-linux/pocket/Logind.nix @@ -1,6 +1,4 @@ { ... }: { - services.logind = { - powerKey = "ignore"; - lidSwitch = "ignore"; - }; + # Don't suspend on lid closed. + services.logind.lidSwitch = "ignore"; } diff --git a/system/Logind.nix b/system/Logind.nix new file mode 100644 index 00000000..311853eb --- /dev/null +++ b/system/Logind.nix @@ -0,0 +1,4 @@ +{ ... }: { + # Disable the power key. + services.logind.powerKey = "ignore"; +}