From 3d84379a7e4c41ae861d50651aad6700b208d24f Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 29 Apr 2023 15:20:03 -0700 Subject: modules/boot: always clean up /tmp on boot --- hosts/tahoe/boot.nix | 1 - modules/system/boot/default.nix | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/hosts/tahoe/boot.nix b/hosts/tahoe/boot.nix index 9bc68f7..bb2f53c 100644 --- a/hosts/tahoe/boot.nix +++ b/hosts/tahoe/boot.nix @@ -15,7 +15,6 @@ }; my.system.boot = { - tmp = { clean = true; }; initrd = { network.enable = true; }; }; } diff --git a/modules/system/boot/default.nix b/modules/system/boot/default.nix index 5a5ac25..30030c6 100644 --- a/modules/system/boot/default.nix +++ b/modules/system/boot/default.nix @@ -3,7 +3,6 @@ let cfg = config.my.system.boot; in { options.my.system.boot = with lib; { - tmp = { clean = mkEnableOption "clean `/tmp` on boot."; }; initrd = { network = { enable = mkEnableOption "enable SSH with initrd"; }; }; @@ -20,7 +19,7 @@ in }; kernelPackages = pkgs.linuxPackages_latest; - cleanTmpDir = cfg.tmp.clean; + cleanTmpDir = true; tmpOnTmpfs = true; initrd = { -- cgit 1.4.1