Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion nixos-modules/host/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,15 @@ in
then updateFlake
else flake}' > flake
chown -h ${user}:${group} flake
'';
''
# Make sure that the sources of the shares can be accessed.
# Also ignore failures of each command for now
+ builtins.foldl' (acc: share:
acc + lib.optionalString (share.source != "/nix/store") ''
# Initialize permissions for share with mountPoint ${share.mountPoint}
mkdir -p '${share.source}' || :
chown -hR ${user}:${group} '${share.source}' || :
'') "" guestConfig.microvm.shares;
serviceConfig.SyslogIdentifier = "install-microvm-${name}";
};
"microvm@${name}" = {
Expand Down