modules/borgbackup: migrate to clanServices

Migrates the borgbackup module to clanServices, preserving it's original
configuration syntax and functionality
This commit is contained in:
pinpox
2025-05-19 14:40:49 +02:00
parent f088ae35c5
commit 64c339dafe
23 changed files with 582 additions and 58 deletions

View File

@@ -41,7 +41,7 @@ in
# Base Tests
secrets = self.clanLib.test.baseTest ./secrets nixosTestArgs;
borgbackup = self.clanLib.test.baseTest ./borgbackup nixosTestArgs;
borgbackup-legacy = self.clanLib.test.baseTest ./borgbackup-legacy nixosTestArgs;
wayland-proxy-virtwl = self.clanLib.test.baseTest ./wayland-proxy-virtwl nixosTestArgs;
# Container Tests
@@ -53,6 +53,7 @@ in
# Clan Tests
dummy-inventory-test = import ./dummy-inventory-test nixosTestArgs;
admin = import ./admin nixosTestArgs;
borgbackup = import ./borgbackup nixosTestArgs;
data-mesher = import ./data-mesher nixosTestArgs;
syncthing = import ./syncthing nixosTestArgs;
}
@@ -108,11 +109,13 @@ in
cat $schemaFile > $out/allSchemas.json
'';
clan-core-for-checks = pkgs.runCommand "clan-core-for-checks" { } ''
cp -r ${pkgs.callPackage ./clan-core-for-checks.nix { }} $out
chmod +w $out/flake.lock
cp ${../flake.lock} $out/flake.lock
'';
clan-core-for-checks = self;
# pkgs.runCommand "clan-core-for-checks" { } ''
# cp -r ${pkgs.callPackage ./clan-core-for-checks.nix { }} $out
# chmod +w $out/flake.lock
# cp ${../flake.lock} $out/flake.lock
# '';
};
legacyPackages = {
nixosTests =