Skip to content

Commit

Permalink
heptifili: Setup zfs maintainance
Browse files Browse the repository at this point in the history
  • Loading branch information
peterablehmann committed Jun 21, 2024
1 parent 5064e0f commit 64ee1c8
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions nodes/heptifili/modules/zfs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,24 @@
extraPools = [ "data" ];
};
};

services.zfs = {
autoScrub = {
enable = true;
interval = "monthly";
pools = [ ]; # Empty List scrubs all mounted pools
};
autoSnapshot = {
enable = true;
flags = "-k -p -u";
frequent = 4;
hourly = 24;
daily = 7;
monthly = 12;
};
trim = {
enable = true;
interval = "weekly";
};
};
}

0 comments on commit 64ee1c8

Please sign in to comment.