1 files changed, 4 insertions, 5 deletions
diff --git a/modules/base-client.nix b/modules/base-client.nix
index 2a5c8e5..98418e8 100755
--- a/modules/base-client.nix
+++ b/modules/base-client.nix
@@ -20,10 +20,10 @@
};
systemd = {
- sleep.extraConfig = ''
- AllowSuspend=no
- AllowHibernation=no
- '';
+ sleep.settings.Sleep = {
+ AllowSuspend = "no";
+ AllowHibernation = "no";
+ };
};
environment.systemPackages = with pkgs; [
@@ -49,5 +49,4 @@
# disable all serial ports/consoles
systemd.suppressedSystemUnits = [ "serial-getty@.service" ];
-
}
|