diff options
| author | Jakub Stachurski <j.stachurski@student.utwente.nl> | 2025-11-19 21:02:52 +0100 |
|---|---|---|
| committer | Jakub Stachurski <j.stachurski@student.utwente.nl> | 2025-11-19 21:02:52 +0100 |
| commit | 892de67a9f64d0b0cdb023d830a019d8feec0a57 (patch) | |
| tree | 0c5fd0c60ef93bb5cdc5f83c8cade0c5dddb4899 /modules/btrfs.nix | |
| parent | f5b37610b3835ea26757ef36d554ec598d53100c (diff) | |
Nix fmt
Diffstat (limited to '')
| -rw-r--r-- | modules/btrfs.nix | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/modules/btrfs.nix b/modules/btrfs.nix index 70d35ac..7c4e964 100644 --- a/modules/btrfs.nix +++ b/modules/btrfs.nix @@ -1,16 +1,21 @@ -{pkgs, lib, config, ...}: -let - cfg = config.addons.btrfs; -in +{ + 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; + services.btrfs.autoScrub = { + enable = true; interval = "weekly"; }; }) |
