summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2015-07-07 19:33:21 +0200
committertv <tv@krebsco.de>2015-07-07 19:33:21 +0200
commit4b2038d7f389056d4a5df8fb34714a51869a08fc (patch)
treeb29af5c063358115b6a33840cbee55f0cc515d80
parent532ab2d0f80b22ab00ca57cc4948e264ad9b1e3d (diff)
nomic: don't suspend on lid switch et al.
-rw-r--r--modules/nomic/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/nomic/default.nix b/modules/nomic/default.nix
index 2485a96..88dcd0c 100644
--- a/modules/nomic/default.nix
+++ b/modules/nomic/default.nix
@@ -81,6 +81,13 @@ in
wireless.enable = true;
};
+ services.logind.extraConfig = ''
+ HandleHibernateKey=ignore
+ HandleLidSwitch=ignore
+ HandlePowerKey=ignore
+ HandleSuspendKey=ignore
+ '';
+
services.openssh = {
enable = true;
hostKeys = [