From 72e403c8191c71764464ada111139d661a6d1688 Mon Sep 17 00:00:00 2001 From: ArgentumCation Date: Wed, 31 Jul 2024 22:28:22 -0400 Subject: [PATCH] (orexin) fix sleep mode --- orexin/configuration.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/orexin/configuration.nix b/orexin/configuration.nix index 848a176..cbbcb25 100644 --- a/orexin/configuration.nix +++ b/orexin/configuration.nix @@ -104,7 +104,10 @@ services.logind.lidSwitch = "ignore"; # networking.firewall.allowedUDPPorts = [ ... ]; # Or disable the firewall altogether. # networking.firewall.enable = false; - + systemd.targets.sleep.enable = false; + systemd.targets.suspend.enable = false; + systemd.targets.hibernate.enable = false; + systemd.targets.hybrid-sleep.enable = false; # Copy the NixOS configuration file and link it from the resulting system # (/run/current-system/configuration.nix). This is useful in case you # accidentally delete configuration.nix.