2024-02-22 10:56:31 +01:00
|
|
|
{
|
|
|
|
description = "Testing mastodon configurations";
|
|
|
|
|
|
|
|
inputs = {
|
2024-08-28 14:35:48 +02:00
|
|
|
# nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
|
|
|
nixpkgs.url = "path:/home/qolen/nixpkgs";
|
2024-02-22 10:56:31 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = { self, nixpkgs }:
|
|
|
|
let
|
|
|
|
system = "x86_64-linux";
|
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
in {
|
|
|
|
|
2024-06-25 12:39:04 +02:00
|
|
|
nixosModules = {
|
2024-08-28 14:35:48 +02:00
|
|
|
interactive-vm = import ./interactive-vm.nix;
|
2024-06-25 12:39:04 +02:00
|
|
|
mastodon = import ./mastodon.nix;
|
2024-08-28 14:35:48 +02:00
|
|
|
mastodon-vm = import ./mastodon-vm.nix;
|
2024-06-25 12:39:04 +02:00
|
|
|
peertube = import ./peertube.nix;
|
2024-08-28 14:35:48 +02:00
|
|
|
peertube-vm = import ./peertube-vm.nix;
|
2024-06-25 12:39:04 +02:00
|
|
|
pixelfed = import ./pixelfed.nix;
|
2024-08-28 14:35:48 +02:00
|
|
|
pixelfed-vm = import ./pixelfed-vm.nix;
|
2024-06-25 12:39:04 +02:00
|
|
|
garage = import ./garage.nix;
|
|
|
|
};
|
|
|
|
|
2024-02-22 10:56:31 +01:00
|
|
|
nixosConfigurations = {
|
|
|
|
mastodon = nixpkgs.lib.nixosSystem {
|
|
|
|
inherit system;
|
2024-08-28 14:35:48 +02:00
|
|
|
modules = with self.nixosModules; [ interactive-vm mastodon mastodon-vm garage ];
|
2024-03-20 00:43:20 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
peertube = nixpkgs.lib.nixosSystem {
|
|
|
|
inherit system;
|
2024-08-28 14:35:48 +02:00
|
|
|
modules = with self.nixosModules; [ interactive-vm peertube peertube-vm garage ];
|
2024-02-22 10:56:31 +01:00
|
|
|
};
|
2024-03-20 01:39:59 +01:00
|
|
|
|
|
|
|
pixelfed = nixpkgs.lib.nixosSystem {
|
|
|
|
inherit system;
|
2024-08-28 14:35:48 +02:00
|
|
|
modules = with self.nixosModules; [ interactive-vm pixelfed pixelfed-vm garage ];
|
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; [
|
|
|
|
interactive-vm
|
|
|
|
peertube peertube-vm
|
|
|
|
pixelfed pixelfed-vm
|
|
|
|
mastodon mastodon-vm
|
|
|
|
garage
|
|
|
|
];
|
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-02-22 10:56:31 +01:00
|
|
|
devShells.${system}.default = pkgs.mkShell {
|
|
|
|
inputs = with pkgs; [
|
|
|
|
nil
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|