remove mosh; replace autoSnap with sanoid

sanoid has a post-snapshot script which I can use to create a template
compress-drv-tests
Motiejus Jakštys 2023-01-05 10:11:39 +02:00
parent 7516f00818
commit 4e280aeb69
1 changed files with 13 additions and 10 deletions

View File

@ -70,24 +70,27 @@ let ssh_pubkeys = {
];
programs.mtr.enable = true;
programs.mosh.enable = true;
services = {
zfs = {
autoSnapshot = {
enable = true;
frequent = 0;
hourly = 24;
daily = 7;
weekly = 0;
monthly = 0;
};
autoScrub.enable = true;
trim.enable = true;
expandOnBoot = "all";
};
sanoid = {
enable = true;
templates.prod = {
hourly = 24;
daily = 7;
autosnap = true;
autoprune = true;
};
datasets."rpool/nixos/home".use_template = [ "prod" ];
datasets."rpool/nixos/var".use_template = [ "prod" ];
extraArgs = [ "--verbose" ];
};
openssh = {
enable = true;
passwordAuthentication = false;