From 502f04040ff97a773ff500c1c5cb8f647826f6a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sun, 31 Oct 2021 18:59:46 +0100 Subject: [PATCH] nix-build: clean tmpfs on reboot --- hosts/containers/nix-build/configuration.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/hosts/containers/nix-build/configuration.nix b/hosts/containers/nix-build/configuration.nix index 0655ea6b..fc5ac813 100644 --- a/hosts/containers/nix-build/configuration.nix +++ b/hosts/containers/nix-build/configuration.nix @@ -6,9 +6,14 @@ ]; boot = { - loader.systemd-boot.enable = true; - loader.efi.efiSysMountPoint = "/boot"; + loader = { + systemd-boot.enable = true; + efi.efiSysMountPoint = "/boot"; + }; + tmpOnTmpfs = true; + cleanTmpDir = true; + kernelModules = [ "kvm-intel" ]; binfmt.emulatedSystems = [ "armv6l-linux" "armv7l-linux" "aarch64-linux" ]; };