From 636482dbbba952026bd6eb8eafc4bea4d2e001d2 Mon Sep 17 00:00:00 2001 From: Tobias Frischmann Date: Thu, 6 Aug 2026 07:30:06 +0200 Subject: [PATCH] disallow hibernation --- hosts/laptop/configuration.nix | 5 +++++ hosts/pc/configuration.nix | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/hosts/laptop/configuration.nix b/hosts/laptop/configuration.nix index 9202de2..1a74661 100644 --- a/hosts/laptop/configuration.nix +++ b/hosts/laptop/configuration.nix @@ -26,6 +26,11 @@ boot.kernelPackages = pkgs.linuxPackages_latest; + systemd.sleep.settings.Sleep = { + AllowHibernation = "no"; + AllowSuspendThenHibernate = "no"; + }; + networking.hostName = "laptop-nixos"; # Define your hostname. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. diff --git a/hosts/pc/configuration.nix b/hosts/pc/configuration.nix index 4a2b246..ed250d0 100644 --- a/hosts/pc/configuration.nix +++ b/hosts/pc/configuration.nix @@ -26,6 +26,11 @@ boot.kernelPackages = pkgs.linuxPackages_latest; + systemd.sleep.settings.Sleep = { + AllowHibernation = "no"; + AllowSuspendThenHibernate = "no"; + }; + networking.hostName = "pc-nixos"; # Define your hostname. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. -- 2.51.2