Hey,
I would like to define one more file inside /etc/zfs/zed.d as follows:
environment.etc."zfs/zed.d/history_event-zfs-list-cacher.sh".text =
"${pkgs.zfs}/libexec/zfs/zed.d/history_event-zfs-list-cacher.sh";
Unfortunately, this seems not to be working:
ln: failed to create symbolic link '/nix/store/clxqcvpf0lza9lww6qxxpgcrd4cwr5c4-etc/etc/zfs/zed.d/history_event-zfs-list-cacher.sh': Permission denied
and I presume that’s because a NixOS module has already defined files in the same directory: https://github.com/NixOS/nixpkgs/blob/f241aa6910450c3a54c8cf5bf0c501f72e09dcef/nixos/modules/tasks/filesystems/zfs.nix#L438-L459
Is there any workaround for that?