diff options
author | Franck Cuny <franck@fcuny.net> | 2023-04-29 15:20:03 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2023-04-29 15:20:03 -0700 |
commit | 3d84379a7e4c41ae861d50651aad6700b208d24f (patch) | |
tree | 41481eca1efc238aba66d9f6ebc563adcb8cc156 | |
parent | modules/system: add ssh keys for known hosts (diff) | |
download | world-3d84379a7e4c41ae861d50651aad6700b208d24f.tar.gz |
modules/boot: always clean up /tmp on boot
Diffstat (limited to '')
-rw-r--r-- | hosts/tahoe/boot.nix | 1 | ||||
-rw-r--r-- | modules/system/boot/default.nix | 3 |
2 files changed, 1 insertions, 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 = { |