Skip to content

Btrfs

services.btrfs.autoScrub.enable

Whether to enable regular btrfs scrub. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/tasks/filesystems/btrfs.nix

services.btrfs.autoScrub.fileSystems

List of paths to btrfs filesystems to regularly call {command}btrfs scrub on. Defaults to all mount points with btrfs filesystems. If you mount a filesystem multiple times or additionally mount subvolumes, you need to manually specify this list to avoid scrubbing multiple times.

Type: list of path

Example

["/"]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/tasks/filesystems/btrfs.nix

services.btrfs.autoScrub.interval

Systemd calendar expression for when to scrub btrfs filesystems. The recommended period is a month but could be less ({manpage}btrfs-scrub(8)). See {manpage}systemd.time(7) for more information on the syntax.

Type: string

Default

"monthly"

Example

"weekly"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/tasks/filesystems/btrfs.nix