Configure behavior for closing laptop lid.

This commit is contained in:
Nolan Darilek 2025-02-24 15:51:20 -06:00
parent b3c9c2bf03
commit 082ed3c097
3 changed files with 8 additions and 8 deletions

View file

@ -18,12 +18,5 @@
environment.variables.EDITOR = "vim";
boot.binfmt.registrations.appimage = {
wrapInterpreterInShell = false;
interpreter = "${pkgs.appimage-run}/bin/appimage-run";
recognitionType = "magic";
offset = 0;
mask = ''\xff\xff\xff\xff\x00\x00\x00\x00\xff\xff\xff'';
magicOrExtension = ''\x7fELF....AI\x02'';
};
programs.appimage.binfmt = true;
}

View file

@ -5,6 +5,7 @@
{
imports = [
./hardware-configuration.nix
../../roles/laptop.nix
../../roles/zfs.nix
../../base.nix
../../users/root.nix

6
roles/laptop.nix Normal file
View file

@ -0,0 +1,6 @@
{
services.logind = {
lidSwitch = "suspend-then-hibernate";
lidSwitchExternalPower = "ignore";
};
}