dotfiles/overlays/virtiofsd-zfs/default.nix

24 lines
426 B
Nix
Raw Normal View History

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