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 5103fad commit 04cd269Copy full SHA for 04cd269
nixos-modules/host/default.nix
@@ -94,7 +94,14 @@ in
94
then updateFlake
95
else flake}' > flake
96
chown -h ${user}:${group} flake
97
- '';
+ ''
98
+ # Make sure that the sources of the shares can be accessed.
99
+ # Also ignore failures of each command for now
100
+ + builtins.foldl' (acc: share: acc + ''
101
+ # Initialize permissions for share with mountPoint ${share.mountPoint}
102
+ mkdir -p '${share.source}' || :
103
+ chown -hR ${user}:${group} '${share.source}' || :
104
+ '') "" guestConfig.microvm.shares;
105
serviceConfig.SyslogIdentifier = "install-microvm-${name}";
106
};
107
"microvm@${name}" = {
0 commit comments