mirror of
https://forge.katzen.cafe/katzen-cafe/katzen-cafe.git
synced 2024-11-22 05:54:41 +01:00
51 lines
1.3 KiB
Nix
51 lines
1.3 KiB
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.11";
|
|
nixpkgsUnstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
#nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
arion.url = "github:hercules-ci/arion";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, nixpkgsUnstable, ... }@inputs:
|
|
let
|
|
hostPkgs = import nixpkgs { system = "x86_64-linux"; };
|
|
in {
|
|
devShell."x86_64-linux" = with hostPkgs; mkShell {
|
|
buildInputs = [ colmena ];
|
|
};
|
|
colmena = {
|
|
meta = {
|
|
nixpkgs = import nixpkgs {
|
|
system = "aarch64-linux";
|
|
overlays = [];
|
|
};
|
|
specialArgs = {
|
|
inherit inputs;
|
|
pkgsUnstable = import nixpkgsUnstable {
|
|
system = "aarch64-linux";
|
|
overlays = [];
|
|
};
|
|
};
|
|
};
|
|
|
|
katzencafe = { name, nodes, pkgs, pkgsUnstable, inputs, ... }: {
|
|
deployment = {
|
|
targetHost = "katzen.cafe";
|
|
buildOnTarget = true;
|
|
};
|
|
imports = [
|
|
./modules/base-stuff.nix
|
|
./modules/proxy.nix
|
|
./modules/postgres.nix
|
|
#./modules/jitsi.nix
|
|
./modules/containers
|
|
./modules/keycloak.nix
|
|
./modules/forgejo.nix
|
|
];
|
|
|
|
system.stateVersion = "22.11";
|
|
};
|
|
};
|
|
};
|
|
}
|