updated jeeves snapshot_manager and config

This commit is contained in:
2024-10-12 06:40:04 -04:00
parent 4bd0c21202
commit b727f67c2d
2 changed files with 31 additions and 24 deletions

View File

@@ -1,4 +1,3 @@
{ inputs, pkgs, ... }:
let
vars = import ./vars.nix;
in
@@ -41,6 +40,11 @@ in
smartd.enable = true;
snapshot_manager = {
enable = true;
path = ./snapshot_config.toml;
};
sysstat.enable = true;
zfs = {
@@ -48,27 +52,6 @@ in
autoScrub.enable = true;
};
};
systemd = {
services."snapshot_manager" = {
description = "ZFS Snapshot Manager";
requires = [ "zfs-import.target" ];
after = [ "zfs-import.target" ];
path = [ pkgs.zfs ];
serviceConfig = {
Type = "oneshot";
ExecStart = "${inputs.system_tools.packages.x86_64-linux.default}/bin/snapshot_manager --config-file='${./snapshot_config.toml}'";
};
};
timers."snapshot_manager" = {
wantedBy = [ "timers.target" ];
timerConfig = {
OnBootSec = "15m";
OnUnitActiveSec = "15m";
Unit = "snapshot_manager.service";
};
};
};
system.stateVersion = "24.05";
}