From ae3c7019efbb7749a7694e3490b1e0faa657ad4f Mon Sep 17 00:00:00 2001 From: h7x4 Date: Thu, 22 Jan 2026 14:54:35 +0900 Subject: [PATCH] base: disable hibernation and sleep --- base/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/base/default.nix b/base/default.nix index c61d0f1..ccd2c47 100644 --- a/base/default.nix +++ b/base/default.nix @@ -86,6 +86,12 @@ Defaults lecture = never ''; + # These are servers, sleep is for the weak + systemd.sleep.extraConfig = lib.mkDefault '' + AllowSuspend=no + AllowHibernation=no + ''; + users.mutableUsers = lib.mkDefault false; users.groups."drift".name = "drift";