From 12bca6d40adc7904c1f19ea2f9b0f2fe771fb309 Mon Sep 17 00:00:00 2001 From: Jess Date: Sun, 19 Oct 2025 09:37:29 +1300 Subject: [PATCH] Revert "restic: add platform assertion (linux)" --- modules/services/restic.nix | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/modules/services/restic.nix b/modules/services/restic.nix index 7577d6b3..20ea8772 100644 --- a/modules/services/restic.nix +++ b/modules/services/restic.nix @@ -327,17 +327,10 @@ in }; config = lib.mkIf cfg.enable { - assertions = lib.flatten [ - (lib.mapAttrsToList (n: v: { - assertion = lib.xor (v.repository == null) (v.repositoryFile == null); - message = "services.restic.backups.${n}: exactly one of repository or repositoryFile should be set"; - }) cfg.backups) - - { - assertion = pkgs.stdenv.hostPlatform.isLinux; - message = "services.restic: linux is currently the only supported platform"; - } - ]; + assertions = lib.mapAttrsToList (n: v: { + assertion = lib.xor (v.repository == null) (v.repositoryFile == null); + message = "services.restic.backups.${n}: exactly one of repository or repositoryFile should be set"; + }) cfg.backups; systemd.user.services = lib.mapAttrs' ( name: backup: