mirror of
https://github.com/nix-community/impermanence
synced 2024-11-12 22:57:11 +00:00
nixos: avoid side effects to fileSystems if possible
This is a good idea in itself. Additionally, it avoids issues if users want to use mkDefault in their fileSystems config and have no persistent directories.
This commit is contained in:
parent
363b3e8622
commit
837e71297f
1 changed files with 2 additions and 2 deletions
|
@ -506,9 +506,9 @@ in
|
||||||
in
|
in
|
||||||
foldl' recursiveUpdate { } (map mkPersistFileService files);
|
foldl' recursiveUpdate { } (map mkPersistFileService files);
|
||||||
|
|
||||||
fileSystems = bindMounts;
|
fileSystems = mkIf (directories != [ ]) bindMounts;
|
||||||
# So the mounts still make it into a VM built from `system.build.vm`
|
# So the mounts still make it into a VM built from `system.build.vm`
|
||||||
virtualisation.fileSystems = bindMounts;
|
virtualisation.fileSystems = mkIf (directories != [ ]) bindMounts;
|
||||||
|
|
||||||
system.activationScripts =
|
system.activationScripts =
|
||||||
let
|
let
|
||||||
|
|
Loading…
Reference in a new issue