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 4e56034 commit 5bfa7dcCopy full SHA for 5bfa7dc
nixos-modules/microvm/virtiofsd/default.nix
@@ -11,6 +11,9 @@ let
11
supervisord = lib.getExe' supervisor "supervisord";
12
supervisorctl = lib.getExe' supervisor "supervisorctl";
13
14
+ # TODO: don't hardcode
15
+ group = "kvm";
16
+
17
in
18
{
19
microvm.binScripts = lib.mkIf requiresVirtiofsd {
@@ -42,7 +45,7 @@ in
42
45
fi
43
46
exec ${lib.getExe pkgs.virtiofsd} \
44
47
--socket-path=${lib.escapeShellArg socket} \
- --socket-group=$(id -gn) \
48
+ --socket-group=${group} \
49
--shared-dir=${lib.escapeShellArg source} \
50
$OPT_RLIMIT \
51
--thread-pool-size ${toString config.microvm.virtiofsd.threadPoolSize} \
0 commit comments