katzen-cafe/flake.nix

51 lines
1.3 KiB
Nix
Raw Normal View History

2023-04-25 13:57:59 +00:00
{
inputs = {
2023-04-26 21:25:04 +00:00
nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.11";
2023-05-03 12:38:40 +00:00
nixpkgsUnstable.url = "github:NixOS/nixpkgs/nixos-unstable";
#nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
arion.url = "github:hercules-ci/arion";
2023-04-25 13:57:59 +00:00
};
2023-05-03 12:38:40 +00:00
outputs = { self, nixpkgs, nixpkgsUnstable, ... }@inputs:
2023-04-25 13:57:59 +00:00
let
hostPkgs = import nixpkgs { system = "x86_64-linux"; };
2023-04-25 13:57:59 +00:00
in {
devShell."x86_64-linux" = with hostPkgs; mkShell {
2023-04-25 13:57:59 +00:00
buildInputs = [ colmena ];
};
colmena = {
meta = {
nixpkgs = import nixpkgs {
system = "aarch64-linux";
overlays = [];
};
specialArgs = {
inherit inputs;
2023-05-03 12:38:40 +00:00
pkgsUnstable = import nixpkgsUnstable {
system = "aarch64-linux";
overlays = [];
};
};
2023-04-25 13:57:59 +00:00
};
2023-05-03 12:38:40 +00:00
katzencafe = { name, nodes, pkgs, pkgsUnstable, inputs, ... }: {
2023-04-25 13:57:59 +00:00
deployment = {
targetHost = "katzen.cafe";
buildOnTarget = true;
};
imports = [
2023-04-26 21:25:04 +00:00
./modules/base-stuff.nix
2023-04-25 13:57:59 +00:00
./modules/proxy.nix
2023-04-26 23:48:20 +00:00
./modules/postgres.nix
2023-05-03 12:38:40 +00:00
#./modules/jitsi.nix
2023-04-26 21:25:04 +00:00
./modules/containers
./modules/keycloak.nix
2023-05-03 12:38:40 +00:00
./modules/forgejo.nix
2023-04-25 13:57:59 +00:00
];
2023-04-25 16:36:26 +00:00
2023-04-25 13:57:59 +00:00
system.stateVersion = "22.11";
};
};
};
}