boxen/profiles/zfs/default.nix

22 lines
400 B
Nix
Raw Permalink Normal View History

2021-08-06 11:09:21 +00:00
{ config, pkgs, lib, ... }:
with lib;
let activeProfiles = config.profiles;
in {
config = mkIf (elem "zfs" activeProfiles) {
boot.supportedFilesystems = [ "zfs" ];
services.zfs = {
trim.enable = true;
autoSnapshot = {
enable = true;
flags = "-k -p --utc";
};
autoScrub = {
enable = true;
2022-07-25 20:56:01 +00:00
interval = "weekly";
2021-08-06 11:09:21 +00:00
};
};
};
}