From 8e022d20cfbe4842aa11b6e9260486175c47a131 Mon Sep 17 00:00:00 2001 From: TheWanderingCrow Date: Tue, 3 Mar 2026 08:44:21 -0500 Subject: [PATCH] ignore power key presses --- hosts/common/core/nixos.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/hosts/common/core/nixos.nix b/hosts/common/core/nixos.nix index 9bc9864..fc53c36 100644 --- a/hosts/common/core/nixos.nix +++ b/hosts/common/core/nixos.nix @@ -2,7 +2,13 @@ config, lib, ... -}: { +}: +{ time.timeZone = lib.mkDefault "America/New_York"; i18n.defaultLocale = lib.mkDefault "en_US.UTF-8"; + + # Ignore power key presses + services.logind.settings.Login = { + HandlePowerKey = "ignore"; + }; }