Skip to content

Commit 5bfa7dc

Browse files
committed
nixos-modules/microvm/virtiofsd/default: set socket group to hardcoded "kvm"
1 parent 4e56034 commit 5bfa7dc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

nixos-modules/microvm/virtiofsd/default.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ let
1111
supervisord = lib.getExe' supervisor "supervisord";
1212
supervisorctl = lib.getExe' supervisor "supervisorctl";
1313

14+
# TODO: don't hardcode
15+
group = "kvm";
16+
1417
in
1518
{
1619
microvm.binScripts = lib.mkIf requiresVirtiofsd {
@@ -42,7 +45,7 @@ in
4245
fi
4346
exec ${lib.getExe pkgs.virtiofsd} \
4447
--socket-path=${lib.escapeShellArg socket} \
45-
--socket-group=$(id -gn) \
48+
--socket-group=${group} \
4649
--shared-dir=${lib.escapeShellArg source} \
4750
$OPT_RLIMIT \
4851
--thread-pool-size ${toString config.microvm.virtiofsd.threadPoolSize} \

0 commit comments

Comments
 (0)