faucet(fs): bind /tmp to on-disk storage
This commit is contained in:
parent
8cbaa7800c
commit
7693203e92
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue