diff options
| author | Jakub Stachurski <j.stachurski@student.utwente.nl> | 2025-08-17 11:25:33 +0200 |
|---|---|---|
| committer | Jakub Stachurski <j.stachurski@student.utwente.nl> | 2025-08-17 11:25:33 +0200 |
| commit | 1be972048dd58218cd689ecb5cac562eb398b751 (patch) | |
| tree | 203f19ee01ad5fe28f2868e8c1451f9538e4ab12 /modules/btrfs.nix | |
| parent | 3cd59d4670711e34a50adea912c3b0894883e490 (diff) | |
refreshed config
Diffstat (limited to 'modules/btrfs.nix')
| -rw-r--r-- | modules/btrfs.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/modules/btrfs.nix b/modules/btrfs.nix new file mode 100644 index 0000000..70d35ac --- /dev/null +++ b/modules/btrfs.nix @@ -0,0 +1,18 @@ +{pkgs, lib, config, ...}: +let + cfg = config.addons.btrfs; +in +{ + options.addons.btrfs = { + enable = lib.mkEnableOption "Enable btrfs-related apps and utils"; + }; + + config = lib.mkMerge [ + (lib.mkIf cfg.enable { + services.btrfs.autoScrub = { + enable = true; + interval = "weekly"; + }; + }) + ]; +} |
