{
description = "Testing mastodon configurations";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
};
outputs = { self, nixpkgs }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in {
nixosModules = {
mastodon = import ./mastodon.nix;
peertube = import ./peertube.nix;
pixelfed = import ./pixelfed.nix;
garage = import ./garage.nix;
nixosConfigurations = {
mastodon = nixpkgs.lib.nixosSystem {
inherit system;
modules = [ ./common.nix ./mastodon.nix ./garage.nix ];
peertube = nixpkgs.lib.nixosSystem {
modules = [ ./common.nix ./peertube.nix ./garage.nix ];
pixelfed = nixpkgs.lib.nixosSystem {
modules = [ ./common.nix ./pixelfed.nix ./garage.nix ];
all = nixpkgs.lib.nixosSystem {
modules = [ ./common.nix ./mastodon.nix ./peertube.nix ./pixelfed.nix ./garage.nix ];
checks.${system} = {
mastodon-garage = import ./tests/mastodon-garage.nix { inherit pkgs self; };
devShells.${system}.default = pkgs.mkShell {
inputs = with pkgs; [
nil
];
}