diff --git a/hosts/hetzner-arm/profiles/restic.nix b/hosts/hetzner-arm/profiles/restic.nix index 7d68c09..9c23b93 100644 --- a/hosts/hetzner-arm/profiles/restic.nix +++ b/hosts/hetzner-arm/profiles/restic.nix @@ -6,6 +6,7 @@ ... }: let inherit (lib.lists) forEach; + inherit (lib.strings) concatStringsSep; inherit (config.services.secrets) secrets; backupSchedules = import "${self}/data/backupSchedules.nix"; @@ -14,13 +15,13 @@ in { environment.systemPackages = [ # TODO: add ones in container too - (pkgs.writeShellScriptBin "restic-all" '' + (concatStringsSep "\n" (pkgs.writeShellScriptBin "restic-all" '' ${(forEach [ "social" ] ( name: "restic-${name} $@" ))} - '') + '')) ]; services.restic.backups = {