From 755a7691c38876a250bacbf8e284a7f9e6c5e4e8 Mon Sep 17 00:00:00 2001 From: Isshi0417 Date: Tue, 23 Jul 2024 22:22:51 +0900 Subject: [PATCH] Disable suspend --- hosts/default/configuration.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hosts/default/configuration.nix b/hosts/default/configuration.nix index 0afc4ac..8535bee 100644 --- a/hosts/default/configuration.nix +++ b/hosts/default/configuration.nix @@ -47,6 +47,14 @@ }; }; + # Configure suspend behavior + systemd.sleep.extraConfig = '' + AllowSuspend=no + AllowHybernation=no + AllowHybridSleep=no + AllowSuspendThenHibernate=no + ''; + networking.hostName = "alienware"; # Define your hostname. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.