From f5142440e5efe633a74f8471701b1f3f626b7dd7 Mon Sep 17 00:00:00 2001 From: Richie Cahill Date: Tue, 28 May 2024 19:31:16 -0400 Subject: [PATCH] set up snapshot_manager --- systems/jeeves/configuration.nix | 23 +++++++++++++++++++---- users/richie/home/vscode/settings.json | 3 ++- 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/systems/jeeves/configuration.nix b/systems/jeeves/configuration.nix index 1e626f9..d60a857 100644 --- a/systems/jeeves/configuration.nix +++ b/systems/jeeves/configuration.nix @@ -113,10 +113,25 @@ zfs = { trim.enable = true; autoScrub.enable = true; - autoSnapshot = { - enable = true; - frequent = 8; - }; + }; + }; + + systemd.services.snapshot_manager = { + description = "ZFS Snapshot Manager"; + requires = [ "zfs-import.target" ]; + after = [ "zfs-import.target" ]; + serviceConfig = { + Type = "oneshot"; + ExecStart = "${pkgs.python}/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"; }; }; diff --git a/users/richie/home/vscode/settings.json b/users/richie/home/vscode/settings.json index 0284a76..1a91806 100644 --- a/users/richie/home/vscode/settings.json +++ b/users/richie/home/vscode/settings.json @@ -61,5 +61,6 @@ "python.analysis.typeCheckingMode": "basic", "redhat.telemetry.enabled": true, "gitlens.plusFeatures.enabled": false, - "github.copilot.editor.enableAutoCompletions": true + "github.copilot.editor.enableAutoCompletions": true, + "explorer.confirmPasteNative": false }