From 3d64f866cac8c8d4f2e5414481633d1a0be3a70d Mon Sep 17 00:00:00 2001 From: s-prechtl Date: Mon, 31 Mar 2025 18:44:58 +0200 Subject: [PATCH] feat: hibernate no --- hosts/saberofxebec/configuration.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hosts/saberofxebec/configuration.nix b/hosts/saberofxebec/configuration.nix index c651683..ef4d01b 100644 --- a/hosts/saberofxebec/configuration.nix +++ b/hosts/saberofxebec/configuration.nix @@ -51,6 +51,12 @@ }; }; services.logind.lidSwitchExternalPower = "ignore"; + systemd.sleep.extraConfig = '' + AllowSuspend=no + AllowHibernation=no + AllowHybridSleep=no + AllowSuspendThenHibernate=no + ''; nix.settings.experimental-features = ["nix-command" "flakes"];