Update a lot of options, simplify variables, replace options with tags
This commit is contained in:
parent
dbc0ab6dd3
commit
7667ef9a1b
147 changed files with 663 additions and 928 deletions
|
@ -2,17 +2,20 @@
|
|||
{
|
||||
boot = {
|
||||
supportedFilesystems = {
|
||||
ntfs = config.system.desktop.enable;
|
||||
zfs = config.system.server.enable;
|
||||
ntfs = builtins.elem "pc" config.system.nixos.tags;
|
||||
zfs = builtins.elem "server" config.system.nixos.tags;
|
||||
};
|
||||
swraid = {
|
||||
enable = config.system.server.enable;
|
||||
enable = builtins.elem "server" config.system.nixos.tags;
|
||||
mdadmConf = "MAILADDR contact@nixfox.ca";
|
||||
};
|
||||
};
|
||||
|
||||
services = lib.mkIf config.environment.persistence."/persist".enable {
|
||||
btrfs.autoScrub.enable = true;
|
||||
btrfs.autoScrub = {
|
||||
enable = true;
|
||||
interval = "weekly";
|
||||
};
|
||||
fstrim.enable = true;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue