Quellcode durchsuchen

disable sleep and hibernate etc on nixstation

Johan Rong vor 2 Wochen
Ursprung
Commit
8487d8558f
1 geänderte Dateien mit 7 neuen und 0 gelöschten Zeilen
  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;
 }