Add virtiofsd-zfs overlay

Signed-off-by: magic_rb <richard@brezak.sk>
This commit is contained in:
magic_rb 2023-10-07 22:31:24 +02:00
parent 935575707f
commit a4156b2309
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E
2 changed files with 22 additions and 0 deletions

View file

@ -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

View file

@ -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[@]}"
'';
};
}