1
0
Fork 0
nix-configuration/modules/services/btrfs.nix

11 lines
268 B
Nix
Raw Normal View History

2024-05-01 21:10:26 -04:00
# Services to run on BTRFS filesystems.
# Only run if the root partition is BTRFS.
{ config, lib, ... }:
{
services.btrfs.autoScrub = lib.mkIf (config.fileSystems."/".fsType == "btrfs") {
enable = true;
interval = "weekly";
fileSystems = [ "/" ];
};
}