From 458090e79529e0385b253866e04b80413e9da6a9 Mon Sep 17 00:00:00 2001 From: blake Date: Sat, 1 Nov 2025 12:35:46 -0500 Subject: [PATCH] add power switch handling to host specific config --- hosts/nixos/default.nix | 7 ------- hosts/nixos/yveltal/configuration.nix | 6 ++++++ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/hosts/nixos/default.nix b/hosts/nixos/default.nix index b59ef11..ea75931 100644 --- a/hosts/nixos/default.nix +++ b/hosts/nixos/default.nix @@ -34,13 +34,6 @@ # allow proprietary packages nixpkgs.config.allowUnfree = true; - # fix power buttons - services.logind.settings.Login = { - HandlePowerKey = "suspend"; - HandleLidSwitch = "suspend"; - #HibernateDelaySec = "30min"; - }; - # power management services.autoaspm.enable = true; powerManagement.powertop.enable = true; diff --git a/hosts/nixos/yveltal/configuration.nix b/hosts/nixos/yveltal/configuration.nix index aa6f410..ce33704 100644 --- a/hosts/nixos/yveltal/configuration.nix +++ b/hosts/nixos/yveltal/configuration.nix @@ -22,6 +22,12 @@ tailscale.enable = true; }; + # fix power buttons + services.logind.settings.Login = { + HandlePowerKey = "suspend"; + HandleLidSwitch = "suspend"; + #HibernateDelaySec = "30min"; + }; # boot (systemd is going on me) boot.loader.systemd-boot.enable = true; # systemd your pretty cool ya know