Fediversity/flake.nix

54 lines
1.3 KiB
Nix
Raw Normal View History

2024-02-22 04:56:31 -05:00
{
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;
};
2024-02-22 04:56:31 -05:00
nixosConfigurations = {
mastodon = nixpkgs.lib.nixosSystem {
inherit system;
modules = [ ./common.nix ./mastodon.nix ./garage.nix ];
2024-03-19 19:43:20 -04:00
};
peertube = nixpkgs.lib.nixosSystem {
inherit system;
2024-04-03 08:40:19 -04:00
modules = [ ./common.nix ./peertube.nix ./garage.nix ];
2024-02-22 04:56:31 -05:00
};
2024-03-19 20:39:59 -04:00
pixelfed = nixpkgs.lib.nixosSystem {
inherit system;
2024-05-24 19:02:12 -04:00
modules = [ ./common.nix ./pixelfed.nix ./garage.nix ];
2024-03-19 20:39:59 -04:00
};
all = nixpkgs.lib.nixosSystem {
inherit system;
2024-05-24 19:02:12 -04:00
modules = [ ./common.nix ./mastodon.nix ./peertube.nix ./pixelfed.nix ./garage.nix ];
2024-03-19 20:39:59 -04:00
};
2024-02-22 04:56:31 -05:00
};
checks.${system} = {
mastodon-garage = import ./tests/mastodon-garage.nix { inherit pkgs self; };
};
2024-02-22 04:56:31 -05:00
devShells.${system}.default = pkgs.mkShell {
inputs = with pkgs; [
nil
];
};
};
}