diff --git a/build01/configuration.nix b/build01/configuration.nix index 8c0adb9..5456bc8 100644 --- a/build01/configuration.nix +++ b/build01/configuration.nix @@ -25,7 +25,7 @@ in ./matterbridge.nix ../profiles/common.nix - ../profiles/docker.nix + ../services/docker.nix ../services/hound ] ++ userImports; diff --git a/profiles/common.nix b/profiles/common.nix index bd8703e..dbeef66 100644 --- a/profiles/common.nix +++ b/profiles/common.nix @@ -4,7 +4,8 @@ imports = [ ./security.nix - ./telegraf + ../services/telegraf + ./zfs.nix ]; environment.systemPackages = [ diff --git a/profiles/zfs.nix b/profiles/zfs.nix new file mode 100644 index 0000000..304fb49 --- /dev/null +++ b/profiles/zfs.nix @@ -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; + }; +} diff --git a/profiles/docker.nix b/services/docker.nix similarity index 100% rename from profiles/docker.nix rename to services/docker.nix diff --git a/profiles/telegraf/default.nix b/services/telegraf/default.nix similarity index 100% rename from profiles/telegraf/default.nix rename to services/telegraf/default.nix diff --git a/profiles/telegraf/mdraid-health.sh b/services/telegraf/mdraid-health.sh similarity index 100% rename from profiles/telegraf/mdraid-health.sh rename to services/telegraf/mdraid-health.sh