Browse Source

disable sleep and hibernate etc on nixstation

Johan Rong 2 weeks ago
parent
commit
8487d8558f
1 changed files with 7 additions and 0 deletions
  1. 7 0
      hosts/nixstation/nixos/default.nix

+ 7 - 0
hosts/nixstation/nixos/default.nix

@@ -29,5 +29,12 @@ in
     "resume=UUID=ba1f1991-b3cf-4bb3-8558-da54c9afa148"
   ];
 
+  systemd.sleep.settings.Sleep = {
+    AllowHibernation = "no";
+    AllowHybridSleep = "no";
+    AllowSuspend = "no";
+    AllowSuspendThenHibernate = "no";
+  };
+
   networking.hostName = hosts.nixstation.hostname;
 }