diff --git a/base.nix b/base.nix index 4526a0b..8b45a80 100644 --- a/base.nix +++ b/base.nix @@ -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; } diff --git a/hosts/flynode/default.nix b/hosts/flynode/default.nix index 555a992..2f9375a 100644 --- a/hosts/flynode/default.nix +++ b/hosts/flynode/default.nix @@ -5,6 +5,7 @@ { imports = [ ./hardware-configuration.nix + ../../roles/laptop.nix ../../roles/zfs.nix ../../base.nix ../../users/root.nix diff --git a/roles/laptop.nix b/roles/laptop.nix new file mode 100644 index 0000000..42232c3 --- /dev/null +++ b/roles/laptop.nix @@ -0,0 +1,6 @@ +{ + services.logind = { + lidSwitch = "suspend-then-hibernate"; + lidSwitchExternalPower = "ignore"; + }; +}