From caf1da923157ecff03ec2e6ac8d7c6d9b43fa802 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Thu, 22 Aug 2024 09:25:58 +0200 Subject: [PATCH] Use tmpfs for /tmp. Enable new nixos system switch implementation --- common/base.nix | 16 ++++++++++++++++ hosts/dinky/default.nix | 5 ----- 2 files changed, 16 insertions(+), 5 deletions(-) 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 = [