mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-29 19:46:17 +01:00
aff0158ef7
Signed-off-by: magic_rb <magic_rb@redalder.org>
24 lines
426 B
Nix
24 lines
426 B
Nix
{
|
|
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[@]}"
|
|
'';
|
|
};
|
|
}
|