Merge pull request from nix-community/zfs

This commit is contained in:
Jörg Thalheim 2021-02-25 08:24:06 +00:00 committed by GitHub
commit bcb67e14fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 11 additions and 2 deletions

View file

@ -25,7 +25,7 @@ in
./matterbridge.nix
../profiles/common.nix
../profiles/docker.nix
../services/docker.nix
../services/hound
] ++ userImports;

View file

@ -4,7 +4,8 @@
imports = [
./security.nix
./telegraf
../services/telegraf
./zfs.nix
];
environment.systemPackages = [

8
profiles/zfs.nix Normal file
View file

@ -0,0 +1,8 @@
{...}: {
services.zfs = {
autoSnapshot.enable = true;
# defaults to 12, which is a bit much given how much data is written
autoSnapshot.monthly = 1;
autoScrub.enable = true;
};
}