faucet(fs): bind /tmp to on-disk storage

This commit is contained in:
514fpv 2024-01-04 15:03:54 +08:00
parent 8cbaa7800c
commit 7693203e92
Signed by: koishi
SSH key fingerprint: SHA256:axz0uIzzY+5W19i7QOUuiw5LSqhKfCBKPf3L4xFRxLw

View file

@ -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;