Files
nix-files/hosts/common/programs/zfs-tools.nix
Colin 49c3bf0f34 zfs: split into zfs-tools program
this lets me sandbox it without building an entire extra copy of zfs
2024-07-07 02:54:33 +00:00

21 lines
422 B
Nix

{ pkgs, ... }:
{
sane.programs.zfs-tools = {
packageUnwrapped = pkgs.linkIntoOwnPackage pkgs.zfs [
"bin/arc_summary"
"bin/arcstat"
# "bin/dbufstat"
"bin/zdb"
"bin/zfs"
"bin/zfs_ids_to_path"
"bin/zilstat"
"bin/zpool"
"bin/zstream"
"bin/zstreamdump"
];
sandbox.method = "landlock"; #< bwrap doesn't work
sandbox.extraPaths = [ "/dev" ];
};
}