diff --git a/common/base.nix b/common/base.nix index 269169b..3525ec8 100644 --- a/common/base.nix +++ b/common/base.nix @@ -5,8 +5,24 @@ loader.systemd-boot.enable = true; loader.efi.canTouchEfiVariables = true; kernelPackages = pkgs.linuxPackages_zen; + initrd.systemd.enable = true; + + binfmt.emulatedSystems = [ "aarch64-linux" ]; }; + # Temporary files + boot.tmp.useTmpfs = true; + systemd.services.nix-daemon = { + environment.TMPDIR = "/var/tmp"; + }; + + system.switch = { + enable = false; + enableNg = true; + }; + + services.fstrim.enable = true; + time.timeZone = "Europe/Stockholm"; environment.systemPackages = with pkgs; [ diff --git a/hosts/dinky/default.nix b/hosts/dinky/default.nix index 2ae4a16..1c625b3 100644 --- a/hosts/dinky/default.nix +++ b/hosts/dinky/default.nix @@ -11,11 +11,6 @@ { imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; - system.switch = { - enable = false; - enableNg = true; - }; - boot = { initrd = { availableKernelModules = [