remove mosh; replace autoSnap with sanoid

sanoid has a post-snapshot script which I can use to create a template
This commit is contained in:
Motiejus Jakštys 2023-01-05 10:11:39 +02:00
parent 7516f00818
commit 4e280aeb69

View File

@ -70,24 +70,27 @@ let ssh_pubkeys = {
]; ];
programs.mtr.enable = true; programs.mtr.enable = true;
programs.mosh.enable = true;
services = { services = {
zfs = { zfs = {
autoSnapshot = {
enable = true;
frequent = 0;
hourly = 24;
daily = 7;
weekly = 0;
monthly = 0;
};
autoScrub.enable = true; autoScrub.enable = true;
trim.enable = true; trim.enable = true;
expandOnBoot = "all"; 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 = { openssh = {
enable = true; enable = true;
passwordAuthentication = false; passwordAuthentication = false;