Skip to content

Commit da064bd

Browse files
committed
nixos-modules/host: add option microvm.virtiofsd.extraArgs
1 parent fa673bf commit da064bd

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

nixos-modules/host/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ in
286286
${lib.optionalString (config.microvm.virtiofsd.inodeFileHandles != null)
287287
"--inode-file-handles=${config.microvm.virtiofsd.inodeFileHandles}"
288288
} \
289+
${lib.concatStringsSep " " config.microvm.virtiofsd.extraArgs} \
289290
&
290291
# detach from shell, but remain in systemd cgroup
291292
disown

nixos-modules/host/options.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,5 +152,13 @@
152152
<https://gitlab.com/virtio-fs/virtiofsd/-/issues/121>
153153
'';
154154
};
155+
156+
virtiofsd.extraArgs = mkOption {
157+
type = with types; listOf str;
158+
default = [];
159+
description = ''
160+
Extra command-line switch to pass to virtiofsd.
161+
'';
162+
};
155163
};
156164
}

0 commit comments

Comments
 (0)