From 00c0979552de9f56db4172df6489e0cc8e342d29 Mon Sep 17 00:00:00 2001 From: wi11-holdsworth <83637728+wi11-holdsworth@users.noreply.github.com> Date: Mon, 29 Sep 2025 22:46:42 +1000 Subject: [PATCH] refactor: backup srv --- modules/nixos/bundles/server.nix | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/modules/nixos/bundles/server.nix b/modules/nixos/bundles/server.nix index 963381b..7e71c78 100644 --- a/modules/nixos/bundles/server.nix +++ b/modules/nixos/bundles/server.nix @@ -1,4 +1,9 @@ -{ config, lib, ... }: +{ + config, + lib, + pkgs, + ... +}: let feature = "server"; in @@ -26,6 +31,17 @@ in # keep-sorted end users.groups.media = { }; + + services.borgbackup.jobs = + import ../backup.nix "srv" + { + paths = [ "/srv" ]; + } + { + inherit config; + inherit lib; + inherit pkgs; + }; }; imports = [ ];