Files
nix-dotfiles/hosts/xps16/services/btrfs.nix

13 lines
285 B
Nix

{ utils, ... }:
{
services.btrfs.autoScrub.enable = true;
systemd.services."btrfs-scrub-${utils.escapeSystemdPath "/"}".serviceConfig = {
PrivateNetwork = true;
RestrictFileSystems = [
"sysfs" # Needed to set scrub speed in /sys/fs/btrfs
"btrfs"
];
};
}