profiles/server: only enable btrfs if have btrfs filesystems
This commit is contained in:
parent
37ce933a6e
commit
df242bd3de
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ with lib; {
|
|||
documentation.enable = mkDefault false;
|
||||
documentation.nixos.enable = mkDefault false;
|
||||
|
||||
services.btrfs.autoScrub.enable = true;
|
||||
services.btrfs.autoScrub.enable = mkDefault ((filterAttrs (name: fs: fs.fsType == "btrfs") config.fileSystems) != { });
|
||||
|
||||
services.journald.extraConfig = ''
|
||||
SystemKeepFree = 2G
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue