Configure behavior for closing laptop lid.
This commit is contained in:
parent
b3c9c2bf03
commit
082ed3c097
3 changed files with 8 additions and 8 deletions
9
base.nix
9
base.nix
|
@ -18,12 +18,5 @@
|
||||||
|
|
||||||
environment.variables.EDITOR = "vim";
|
environment.variables.EDITOR = "vim";
|
||||||
|
|
||||||
boot.binfmt.registrations.appimage = {
|
programs.appimage.binfmt = true;
|
||||||
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'';
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
../../roles/laptop.nix
|
||||||
../../roles/zfs.nix
|
../../roles/zfs.nix
|
||||||
../../base.nix
|
../../base.nix
|
||||||
../../users/root.nix
|
../../users/root.nix
|
||||||
|
|
6
roles/laptop.nix
Normal file
6
roles/laptop.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
services.logind = {
|
||||||
|
lidSwitch = "suspend-then-hibernate";
|
||||||
|
lidSwitchExternalPower = "ignore";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue