aboutsummaryrefslogtreecommitdiff
path: root/nixos/laptop
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/laptop')
-rw-r--r--nixos/laptop/configuration.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/nixos/laptop/configuration.nix b/nixos/laptop/configuration.nix
index 948aed6..7d38479 100644
--- a/nixos/laptop/configuration.nix
+++ b/nixos/laptop/configuration.nix
@@ -42,6 +42,13 @@
users.jerpo = import ../../home-manager/laptop;
};
+ services.logind.extraConfig = ''
+ HandlePowerKey=ignore
+ HandleLidSwitch=suspend
+ HandleLidSwitchExternalPower=suspend
+ '';
+
+
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
system.stateVersion = "23.05";
}