diff --git a/config/config.nix b/config/config.nix index faba432..7362dcb 100644 --- a/config/config.nix +++ b/config/config.nix @@ -31,11 +31,9 @@ in networking.networkmanager.enable = true; # Power button settings - services.logind = { - extraConfig = '' - HandlePowerKey=ignore - HandlePowerKeyLongPress=poweroff - ''; + services.logind.settings.Login = { + HandlePowerKey = "ignore"; + HandlePowerKeyLongPress = "poweroff"; }; # Set your time zone.