mochi/nixos/hosts/shadowfax/config/sanoid.nix
Joseph Hanson 86674c4821 less snaps for nvr
monthly snap was taking up 1.5tb of nvme
2025-01-04 15:38:18 -06:00

42 lines
921 B
Nix

{ ... }:
{
outputs = {
# ZFS automated snapshots
templates = {
"production" = {
autoprune = true;
autosnap = true;
hourly = 24;
daily = 7;
monthly = 12;
};
"nvr" = {
autoprune = true;
autosnap = true;
hourly = 24;
daily = 7;
};
};
datasets = {
"nahar/scrypted" = {
useTemplate = [ "nvr" ];
};
"nahar/containers/volumes/plex" = {
useTemplate = [ "production" ];
recursive = true;
};
"nahar/containers/volumes/scrypted" = {
useTemplate = [ "production" ];
recursive = true;
};
"nahar/containers/volumes/jellyfin" = {
useTemplate = [ "production" ];
recursive = true;
};
"nahar/containers/volumes/scrutiny" = {
useTemplate = [ "production" ];
recursive = true;
};
};
};
}