diff options
| author | Tim Keller <tjk@tjkeller.xyz> | 2026-06-15 15:48:45 -0500 |
|---|---|---|
| committer | Tim Keller <tjk@tjkeller.xyz> | 2026-06-15 15:48:45 -0500 |
| commit | af63e346ff5542559dc507b0a901a4d8b370d4d3 (patch) | |
| tree | 73780a2a9660773ee0a12ef63330e2654ae8198a | |
| parent | 0de9ddc14994bafb3d1039776f62071f3806d791 (diff) | |
| download | nixos-master.tar.xz nixos-master.zip | |
| -rw-r--r-- | nixos/powerkeys.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/powerkeys.nix b/nixos/powerkeys.nix index e7c6275..040cfa8 100644 --- a/nixos/powerkeys.nix +++ b/nixos/powerkeys.nix @@ -5,7 +5,7 @@ in { enable = lib.mkEnableOption "do not immediately shutdown when powerkey is pressed"; }; - config = lib.mkIf config.enable = { + config = lib.mkIf cfg.enable { services.logind.settings.Login = { HandlePowerKey = "ignore"; # Allow for powerkey to activate power script HandlePowerKeyLongPress = "poweroff"; |
