move common zfs settings to modules/base

This commit is contained in:
2023-07-26 13:58:42 +03:00
parent d4527c24a6
commit cff18bfb8f
5 changed files with 48 additions and 33 deletions

View File

@@ -29,6 +29,7 @@
timeZone = "Europe/Vilnius";
base = {
zfs.enable = true;
users.passwd = {
root.passwordFile = config.age.secrets.root-passwd-hash.path;
motiejus.passwordFile = config.age.secrets.motiejus-passwd-hash.path;
@@ -38,6 +39,12 @@
enable = true;
mountpoints = ["/home"];
};
unitstatus = {
enable = true;
email = "motiejus+alerts@jakstys.lt";
units = ["nixos-upgrade"];
};
};
services = {
@@ -97,12 +104,6 @@
"jakstys.lt.".data = myData.jakstysLTZone;
};
};
zfs = {
autoScrub.enable = true;
trim.enable = true;
expandOnBoot = "all";
};
};
networking = {