Merge pull request #54 from nix-community/zfs
This commit is contained in:
commit
bcb67e14fb
6 changed files with 11 additions and 2 deletions
build01
profiles
services
|
@ -25,7 +25,7 @@ in
|
|||
./matterbridge.nix
|
||||
|
||||
../profiles/common.nix
|
||||
../profiles/docker.nix
|
||||
../services/docker.nix
|
||||
../services/hound
|
||||
] ++ userImports;
|
||||
|
||||
|
|
|
@ -4,7 +4,8 @@
|
|||
|
||||
imports = [
|
||||
./security.nix
|
||||
./telegraf
|
||||
../services/telegraf
|
||||
./zfs.nix
|
||||
];
|
||||
|
||||
environment.systemPackages = [
|
||||
|
|
8
profiles/zfs.nix
Normal file
8
profiles/zfs.nix
Normal 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;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue