We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9fe9b9 commit e8bfac9Copy full SHA for e8bfac9
nixos-modules/host/default.nix
@@ -92,7 +92,14 @@ in
92
then updateFlake
93
else flake}' > flake
94
chown -h ${user}:${group} flake
95
- '';
+ ''
96
+ # Make sure that the sources of the shares can be accessed.
97
+ # Also ignore failures of each command for now
98
+ + builtins.foldl' (acc: share: acc + ''
99
+ # Initialize permissions for share with mountPoint ${share.mountPoint}
100
+ mkdir -p '${share.source}' || :
101
+ chown -hR ${user}:${group} '${share.source}' || :
102
+ '') "" guestConfig.microvm.shares;
103
serviceConfig.SyslogIdentifier = "install-microvm-${name}";
104
};
105
"microvm@${name}" = {
0 commit comments