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:
parent
7516f00818
commit
4e280aeb69
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user