1
0
Эх сурвалжийг харах

disable sleep and hibernate etc on nixstation

Johan Rong 2 долоо хоног өмнө
parent
commit
8487d8558f

+ 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;
 }