Skip to content

Commit

Permalink
nixos-modules/host: add option microvm.virtiofsd.extraArgs
Browse files Browse the repository at this point in the history
  • Loading branch information
astro committed May 21, 2024
1 parent fa673bf commit da064bd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions nixos-modules/host/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ in
${lib.optionalString (config.microvm.virtiofsd.inodeFileHandles != null)
"--inode-file-handles=${config.microvm.virtiofsd.inodeFileHandles}"
} \
${lib.concatStringsSep " " config.microvm.virtiofsd.extraArgs} \
&
# detach from shell, but remain in systemd cgroup
disown
Expand Down
8 changes: 8 additions & 0 deletions nixos-modules/host/options.nix
Original file line number Diff line number Diff line change
Expand Up @@ -152,5 +152,13 @@
<https://gitlab.com/virtio-fs/virtiofsd/-/issues/121>
'';
};

virtiofsd.extraArgs = mkOption {
type = with types; listOf str;
default = [];
description = ''
Extra command-line switch to pass to virtiofsd.
'';
};
};
}

0 comments on commit da064bd

Please sign in to comment.