{ description = "Declarative API initialization for Servarr applications (Sonarr, Radarr, Prowlarr, Bazarr)"; inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; }; outputs = { self, nixpkgs }: let supportedSystems = [ "x86_64-linux" "aarch64-linux" ]; forAllSystems = nixpkgs.lib.genAttrs supportedSystems; in { nixosModules.default = import ./module.nix; nixosModules.arr-init = import ./module.nix; checks = forAllSystems ( system: let pkgs = nixpkgs.legacyPackages.${system}; in import ./tests { inherit pkgs; lib = nixpkgs.lib; inherit self; } ); formatter = forAllSystems (system: nixpkgs.legacyPackages.${system}.nixfmt-tree); }; }