149093b
Branches > main > 149093b > files
Laptop - Lock the screen when the lid closes
Commit: 149093b1709714b555f13e0acbbe7f36808ea57c
Parent: 5e80be6
1 changed file:
nixos/machines/chromebook/configuration.nix view file
@@ -18,6 +18,13 @@ services.tlp.enable = true; services.logind.settings.Login.HandleLidSwitch = "suspend"; + ## Lock the screen before suspending (lid close), password to get back in+ programs.xss-lock = {+ enable = true;+ lockerCommand = "${pkgs.i3lock}/bin/i3lock --nofork --color 000000";+ extraOptions = [ "--transfer-sleep-lock" ];+ };+ powerManagement.cpuFreqGovernor = "schedutil"; ## Only 4GB RAM: compressed swap in RAM, and kill the hog early instead of freezing