about summary refs log tree commit diff
path: root/modules/system/btrfs/default.nix
blob: 3446b2cccb9985f432eab7478fc829542a53206b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{ lib, config, ... }:
let
  cfg = config.my.systems.btrfs;
in
{
  options.my.systems.btrfs = with lib; {
    enable = mkEnableOption "btrfs configuration";
  };

  config = lib.mkIf cfg.enable
    {
      services.btrfs.autoScrub.enable = !config.virtualisation.libvirtd.enable;
    };
}