Files
nix-config/modules/nixos/hardware/btrfs/default.nix
mjallen18 10fc7820e1 testing
2026-01-27 11:13:58 -06:00

15 lines
295 B
Nix

{ lib, config, namespace, ... }:
{
services.btrfs = {
autoScrub.enable = lib.mkDefault (config.${namespace}.hardware.disko.filesystem == "btrfs");
autoScrub.fileSystems = lib.mkDefault [
"/nix"
"/root"
"/etc"
"/tmp"
"/var/log"
"/home"
];
};
}