From a4156b2309e4eba12b45500c11bc7d7e269e9333 Mon Sep 17 00:00:00 2001 From: magic_rb Date: Sat, 7 Oct 2023 22:31:24 +0200 Subject: [PATCH] Add virtiofsd-zfs overlay Signed-off-by: magic_rb --- flake.nix | 1 + overlays/virtiofsd-zfs/default.nix | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 overlays/virtiofsd-zfs/default.nix 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[@]}" + ''; + }; +}