Initial commit.

This commit is contained in:
Nolan Darilek 2024-12-18 18:19:37 -06:00
commit 67823cbed6
51 changed files with 1714 additions and 0 deletions

27
roles/zfs.nix Normal file
View file

@ -0,0 +1,27 @@
{
services.zfs.autoScrub.enable = true;
services.sanoid = {
enable = true;
templates.backup = {
hourly = 36;
daily = 30;
monthly = 12;
yearly = 1;
autoprune = true;
autosnap = true;
};
datasets."zpool/root" = {
useTemplate = [ "backup" ];
};
datasets."zpool/home" = {
useTemplate = [ "backup" ];
};
datasets."zpool/var" = {
useTemplate = [ "backup" ];
};
};
}