{ description = "Testing mastodon configurations"; inputs = { nixpkgs.url = "github:radvendii/nixpkgs/nixos_rebuild_tests"; }; outputs = { self, nixpkgs }: let system = "x86_64-linux"; pkgs = nixpkgs.legacyPackages.${system}; in { nixosModules = { ## Fediversity modules garage = import ./fediversity/garage.nix; mastodon = import ./fediversity/mastodon.nix; peertube = import ./fediversity/peertube.nix; pixelfed = import ./fediversity/pixelfed.nix; ## VM-specific modules interactive-vm = import ./vm/interactive-vm.nix; mastodon-vm = import ./vm/mastodon-vm.nix; peertube-vm = import ./vm/peertube-vm.nix; pixelfed-vm = import ./vm/pixelfed-vm.nix; }; nixosConfigurations = { mastodon = nixpkgs.lib.nixosSystem { inherit system; modules = with self.nixosModules; [ interactive-vm mastodon mastodon-vm garage ]; }; peertube = nixpkgs.lib.nixosSystem { inherit system; modules = with self.nixosModules; [ interactive-vm peertube peertube-vm garage ]; }; pixelfed = nixpkgs.lib.nixosSystem { inherit system; modules = with self.nixosModules; [ interactive-vm pixelfed pixelfed-vm garage ]; }; all = nixpkgs.lib.nixosSystem { inherit system; modules = with self.nixosModules; [ interactive-vm peertube peertube-vm pixelfed pixelfed-vm mastodon mastodon-vm garage ]; }; }; checks.${system} = { mastodon-garage = import ./tests/mastodon-garage.nix { inherit pkgs self; }; pixelfed-garage = import ./tests/pixelfed-garage.nix { inherit pkgs self; }; }; devShells.${system}.default = pkgs.mkShell { inputs = with pkgs; [ nil ]; }; }; }