summaryrefslogtreecommitdiffstats
path: root/modules/nomic
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2015-07-07 19:33:21 +0200
committertv <tv@shackspace.de>2015-07-07 19:33:21 +0200
commit1237750c553c2a33f74cdc520e1abd22c98de28c (patch)
treed233bc411a5b9d6e5ada9d1818990f38031dd9a7 /modules/nomic
parentabfa54f90175819f546a92722285c32d2d6aa96b (diff)
nomic: don't suspend on lid switch et al.
Diffstat (limited to 'modules/nomic')
-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 2485a96c1..88dcd0ca8 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 = [