Skip to content

Commit f1fa11e

Browse files
committedSep 9, 2024
Add btrfs scrub
1 parent 663bf82 commit f1fa11e

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
 

‎modules/btrfs.nix

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
config,
3+
lib,
4+
...
5+
}:
6+
lib.mkIf (config.filesystems.defaultLayout) {
7+
services.btrfs.autoScrub = {
8+
enable = true;
9+
interval = "03:20";
10+
fileSystems = [
11+
"/nix"
12+
];
13+
};
14+
}

‎modules/default.nix

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
./acme.nix
44
./backend
55
./boot.nix
6+
./btrfs.nix
67
./containers.nix
78
./deploy.nix
89
./docker-images.nix

0 commit comments

Comments
 (0)