Merge pull request #190 from linj-fork/pr/do-nothing-if-no-config

nixos: avoid side effects to fileSystems if possible
This commit is contained in:
Kim Lindberger 2024-06-22 23:28:11 +02:00 committed by GitHub
commit 23c1f06316
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -506,9 +506,9 @@ in
in
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`
virtualisation.fileSystems = bindMounts;
virtualisation.fileSystems = mkIf (directories != [ ]) bindMounts;
system.activationScripts =
let