diff --git a/hosts/lifebook/default.nix b/hosts/lifebook/default.nix index c589441..ca3c411 100644 --- a/hosts/lifebook/default.nix +++ b/hosts/lifebook/default.nix @@ -65,8 +65,9 @@ light.enable = true; }; + systemd.sleep.extraConfig = "HibernateDelaySec=1h"; services = { - logind.lidSwitch = "suspend"; # Laptop does not go to sleep when lid is closed + logind.lidSwitch = "suspend-then-hibernate"; # Laptop does not go to sleep when lid is closed blueman.enable = true; printing = { # Printing and drivers for TS5300 enable = true; diff --git a/hosts/lifebook/hardware-configuration.nix b/hosts/lifebook/hardware-configuration.nix index 2c34d2f..8bda423 100644 --- a/hosts/lifebook/hardware-configuration.nix +++ b/hosts/lifebook/hardware-configuration.nix @@ -43,8 +43,8 @@ zramSwap.enable = true; powerManagement = { - powerDownCommands = "rmmod intel_lpss_pci"; - resumeCommands = "modprobe intel_lpss_pci"; + powerDownCommands = "${pkgs.kmod}/bin/rmmod intel_lpss_pci"; + resumeCommands = "${pkgs.kmod}/bin/modprobe intel_lpss_pci"; };