Initial commit.
This commit is contained in:
commit
67823cbed6
51 changed files with 1714 additions and 0 deletions
27
roles/zfs.nix
Normal file
27
roles/zfs.nix
Normal 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" ];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue