diff --git a/flake.nix b/flake.nix index 3850277..5a348b4 100644 --- a/flake.nix +++ b/flake.nix @@ -101,6 +101,7 @@ overlays/terraform-provider-influxdb-v2.nix overlays/bootloadHID.nix overlays/itp + overlays/virtiofsd-zfs overlays/show-files-to-be-deleted inputs.uterranix.flakeModule diff --git a/overlays/virtiofsd-zfs/default.nix b/overlays/virtiofsd-zfs/default.nix new file mode 100644 index 0000000..522b7a1 --- /dev/null +++ b/overlays/virtiofsd-zfs/default.nix @@ -0,0 +1,21 @@ +{ inputs, lib, ... }: +{ + flake.overlays.virtiofsd-zfs = + final: prev: { + virtiofsd = final.writeShellScriptBin "virtiofsd" '' + ok_args=() + while [[ $# -gt 0 ]] ; do + case "$1" in + --posix-acl) + ;; + *) + ok_args+=("$1") + ;; + esac + shift 1 + done + + exec ${lib.getExe' prev.virtiofsd "virtiofsd"} "''${ok_args[@]}" + ''; + }; +}