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: