From cbc20ba224cf72a112bbd39093c578b9cf201ddc Mon Sep 17 00:00:00 2001 From: Kabbone Date: Sat, 7 Jan 2023 08:38:47 +0100 Subject: [PATCH] hosts: put tmp on tmpfs --- hosts/desktop/hardware-configuration.nix | 1 + hosts/laptop/hardware-configuration.nix | 1 + hosts/server/hardware-configuration.nix | 1 + 3 files changed, 3 insertions(+) diff --git a/hosts/desktop/hardware-configuration.nix b/hosts/desktop/hardware-configuration.nix index 769e67e..477e27b 100644 --- a/hosts/desktop/hardware-configuration.nix +++ b/hosts/desktop/hardware-configuration.nix @@ -21,6 +21,7 @@ boot.initrd.kernelModules = [ "vfio_pci" "vfio" "vfio_iommu_type1" "vfio_virqfd" ]; boot.kernelModules = [ "kvm-amd" ]; boot.extraModulePackages = [ ]; + boot.tmpOnTmpfs = true; fileSystems."/" = { device = "/dev/disk/by-label/NIXROOT"; diff --git a/hosts/laptop/hardware-configuration.nix b/hosts/laptop/hardware-configuration.nix index 523a105..97a3245 100644 --- a/hosts/laptop/hardware-configuration.nix +++ b/hosts/laptop/hardware-configuration.nix @@ -22,6 +22,7 @@ boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; boot.kernelParams = [ "mitigations=off" "luks.options=fido2-device=auto" ]; + boot.tmpOnTmpfs = true; boot.initrd.luks = { fido2Support = true; diff --git a/hosts/server/hardware-configuration.nix b/hosts/server/hardware-configuration.nix index 85e096d..cb43ffc 100644 --- a/hosts/server/hardware-configuration.nix +++ b/hosts/server/hardware-configuration.nix @@ -21,6 +21,7 @@ boot.initrd.kernelModules = [ "vfio_pci" "vfio" "vfio_iommu_type1" "vfio_virqfd" ]; boot.kernelModules = [ "kvm-amd" ]; boot.extraModulePackages = [ ]; + boot.tmpOnTmpfs = true; fileSystems."/" = { device = "/dev/disk/by-label/NIXROOT";