2024-02-22 10:56:31 +01:00
|
|
|
{
|
|
|
|
description = "Testing mastodon configurations";
|
|
|
|
|
|
|
|
inputs = {
|
2024-08-28 14:39:36 +02:00
|
|
|
nixpkgs.url = "github:radvendii/nixpkgs/nixos_rebuild_tests";
|
2024-02-22 10:56:31 +01:00
|
|
|
};
|
|
|
|
|
2024-09-17 14:30:59 +02:00
|
|
|
outputs = { self, nixpkgs }:
|
2024-02-22 10:56:31 +01:00
|
|
|
let
|
|
|
|
system = "x86_64-linux";
|
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
in {
|
|
|
|
|
2024-06-25 12:39:04 +02:00
|
|
|
nixosModules = {
|
2024-09-17 14:24:23 +02:00
|
|
|
## Fediversity modules
|
2024-09-23 11:48:17 +02:00
|
|
|
fediversity = ./fediversity;
|
2024-09-17 14:24:23 +02:00
|
|
|
|
|
|
|
## VM-specific modules
|
2024-09-23 11:48:17 +02:00
|
|
|
interactive-vm = ./vm/interactive-vm.nix;
|
|
|
|
mastodon-vm = ./vm/mastodon-vm.nix;
|
|
|
|
peertube-vm = ./vm/peertube-vm.nix;
|
|
|
|
pixelfed-vm = ./vm/pixelfed-vm.nix;
|
2024-06-25 12:39:04 +02:00
|
|
|
};
|
|
|
|
|
2024-02-22 10:56:31 +01:00
|
|
|
nixosConfigurations = {
|
|
|
|
mastodon = nixpkgs.lib.nixosSystem {
|
|
|
|
inherit system;
|
2024-09-17 14:30:59 +02:00
|
|
|
modules = with self.nixosModules; [ fediversity interactive-vm mastodon-vm ];
|
2024-03-20 00:43:20 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
peertube = nixpkgs.lib.nixosSystem {
|
|
|
|
inherit system;
|
2024-09-17 14:30:59 +02:00
|
|
|
modules = with self.nixosModules; [ fediversity interactive-vm peertube-vm ];
|
2024-02-22 10:56:31 +01:00
|
|
|
};
|
2024-03-20 01:39:59 +01:00
|
|
|
|
|
|
|
pixelfed = nixpkgs.lib.nixosSystem {
|
|
|
|
inherit system;
|
2024-09-17 14:30:59 +02:00
|
|
|
modules = with self.nixosModules; [ fediversity interactive-vm pixelfed-vm ];
|
2024-03-20 01:39:59 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
all = nixpkgs.lib.nixosSystem {
|
|
|
|
inherit system;
|
2024-08-28 14:35:48 +02:00
|
|
|
modules = with self.nixosModules; [
|
2024-09-17 14:30:59 +02:00
|
|
|
fediversity
|
2024-08-28 14:35:48 +02:00
|
|
|
interactive-vm
|
2024-09-17 14:30:59 +02:00
|
|
|
peertube-vm
|
|
|
|
pixelfed-vm
|
|
|
|
mastodon-vm
|
2024-08-28 14:35:48 +02:00
|
|
|
];
|
2024-03-20 01:39:59 +01:00
|
|
|
};
|
2024-02-22 10:56:31 +01:00
|
|
|
};
|
|
|
|
|
2024-06-25 12:39:04 +02:00
|
|
|
checks.${system} = {
|
|
|
|
mastodon-garage = import ./tests/mastodon-garage.nix { inherit pkgs self; };
|
2024-08-30 17:23:55 +02:00
|
|
|
pixelfed-garage = import ./tests/pixelfed-garage.nix { inherit pkgs self; };
|
2024-06-25 12:39:04 +02:00
|
|
|
};
|
|
|
|
|
2024-02-22 10:56:31 +01:00
|
|
|
devShells.${system}.default = pkgs.mkShell {
|
|
|
|
inputs = with pkgs; [
|
|
|
|
nil
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|