faucet(fs): bind /tmp to on-disk storage
This commit is contained in:
parent
59f5674a91
commit
07fbfbd8d7
1 changed files with 6 additions and 1 deletions
|
@ -73,7 +73,12 @@ in {
|
||||||
fileSystems."/nix/persist" = mkIf cfg.extPersist.enable
|
fileSystems."/nix/persist" = mkIf cfg.extPersist.enable
|
||||||
{ inherit (cfg.extPersist) device fsType options;
|
{ inherit (cfg.extPersist) device fsType options;
|
||||||
neededForBoot = true;
|
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;
|
services.fstrim.enable = mkIf ((cfg.type == "ext4") || (cfg.type == "xfs")) true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue