From 07fbfbd8d7074d1af7dc2c800800789da131486d Mon Sep 17 00:00:00 2001 From: 514fpv Date: Thu, 4 Jan 2024 15:03:54 +0800 Subject: [PATCH] faucet(fs): bind /tmp to on-disk storage --- faucet/fs/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/faucet/fs/default.nix b/faucet/fs/default.nix index 6cbdb9e7..fda65d1e 100644 --- a/faucet/fs/default.nix +++ b/faucet/fs/default.nix @@ -73,7 +73,12 @@ in { fileSystems."/nix/persist" = mkIf cfg.extPersist.enable { inherit (cfg.extPersist) device fsType options; neededForBoot = true; - depends = "/nix"; + depends = [ "/nix" ]; + }; + fileSystems."/tmp" = + { device = "/nix/tmp"; + options = [ "bind" ]; + depends = [ "/nix/tmp" ]; }; services.fstrim.enable = mkIf ((cfg.type == "ext4") || (cfg.type == "xfs")) true;