Btrfs: Difference between revisions
replace manual bees with NixOS module |
|||
Line 122: | Line 122: | ||
Files with (partially) equal contents can be deduplicated using [https://github.com/Zygo/bees bees] or [https://github.com/markfasheh/duperemove duperemove]. | Files with (partially) equal contents can be deduplicated using [https://github.com/Zygo/bees bees] or [https://github.com/markfasheh/duperemove duperemove]. | ||
bees can be configured in <code>configuration.nix</code>: | |||
<syntaxhighlight lang="nix"> | |||
services.beesd.filesystems = { | |||
root = { | |||
spec = "LABEL=root"; | |||
hashTableSizeMB = 2048; | |||
verbosity = "crit"; | |||
extraOptions = [ "--loadavg-target" "5.0" ]; | |||
}; | |||
}; | |||
</syntaxhighlight> | |||
< | This will run the daemon in the background. To disable auto-start, use <code>systemd.services."beesd@root".wantedBy = lib.mkForce [ ];</code> for each filesystem. | ||
</ | |||
== Usage == | == Usage == |