From 1badf7791212af6dd17bd5e04f893cdf22c771ff Mon Sep 17 00:00:00 2001 From: Richie Cahill Date: Tue, 28 May 2024 19:36:53 -0400 Subject: [PATCH] made a string --- systems/jeeves/configuration.nix | 33 ++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/systems/jeeves/configuration.nix b/systems/jeeves/configuration.nix index de02a4c..5ffaf68 100644 --- a/systems/jeeves/configuration.nix +++ b/systems/jeeves/configuration.nix @@ -115,23 +115,24 @@ autoScrub.enable = true; }; }; - - systemd.services.snapshot_manager = { - description = "ZFS Snapshot Manager"; - requires = [ "zfs-import.target" ]; - after = [ "zfs-import.target" ]; - serviceConfig = { - Type = "oneshot"; - ExecStart = "${pkgs.python3}/bin/python -m zfs.snapshot_manager --config-file='/ZFS/Media/Scripts/new/config.toml'"; + systemd = { + services."snapshot_manager" = { + description = "ZFS Snapshot Manager"; + requires = [ "zfs-import.target" ]; + after = [ "zfs-import.target" ]; + serviceConfig = { + Type = "oneshot"; + ExecStart = "${pkgs.python3}/bin/python -m zfs.snapshot_manager --config-file='/ZFS/Media/Scripts/new/config.toml'"; + }; }; - }; - systemd.timers.snapshot_manager = { - description = "ZFS Snapshot Manager"; - service = "snapshot_manager"; - timerConfig = { - OnBootSec = "15m"; - OnUnitActiveSec = "15m"; - Unit = "snapshot_manager.service"; + timers."snapshot_manager" = { + description = "ZFS Snapshot Manager"; + service = "snapshot_manager"; + timerConfig = { + OnBootSec = "15m"; + OnUnitActiveSec = "15m"; + Unit = "snapshot_manager.service"; + }; }; };