mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-22 08:04:20 +01:00
Add virtiofsd-zfs overlay
Signed-off-by: magic_rb <richard@brezak.sk>
This commit is contained in:
parent
935575707f
commit
a4156b2309
|
@ -101,6 +101,7 @@
|
||||||
overlays/terraform-provider-influxdb-v2.nix
|
overlays/terraform-provider-influxdb-v2.nix
|
||||||
overlays/bootloadHID.nix
|
overlays/bootloadHID.nix
|
||||||
overlays/itp
|
overlays/itp
|
||||||
|
overlays/virtiofsd-zfs
|
||||||
overlays/show-files-to-be-deleted
|
overlays/show-files-to-be-deleted
|
||||||
|
|
||||||
inputs.uterranix.flakeModule
|
inputs.uterranix.flakeModule
|
||||||
|
|
21
overlays/virtiofsd-zfs/default.nix
Normal file
21
overlays/virtiofsd-zfs/default.nix
Normal 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[@]}"
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue