diff --git a/nixos-modules/host/default.nix b/nixos-modules/host/default.nix index 256b47a..aa9d5d6 100644 --- a/nixos-modules/host/default.nix +++ b/nixos-modules/host/default.nix @@ -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 diff --git a/nixos-modules/host/options.nix b/nixos-modules/host/options.nix index bafb235..d7e7277 100644 --- a/nixos-modules/host/options.nix +++ b/nixos-modules/host/options.nix @@ -152,5 +152,13 @@ ''; }; + + virtiofsd.extraArgs = mkOption { + type = with types; listOf str; + default = []; + description = '' + Extra command-line switch to pass to virtiofsd. + ''; + }; }; }