katzen-cafe/flake.nix

82 lines
2 KiB
Nix
Raw Normal View History

2023-04-25 15:57:59 +02:00
{
inputs = {
2024-05-01 17:57:10 +02:00
nixpkgsOld.url = "github:NixOS/nixpkgs/nixos-23.11";
2024-01-25 10:05:22 +01:00
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
2023-05-03 14:38:40 +02:00
nixpkgsUnstable.url = "github:NixOS/nixpkgs/nixos-unstable";
#nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
arion.url = "github:hercules-ci/arion";
2023-05-08 07:17:06 +02:00
mms.url = "github:mkaito/nixos-modded-minecraft-servers";
2023-07-30 16:24:46 +02:00
simple-nixos-mailserver.url = "gitlab:simple-nixos-mailserver/nixos-mailserver/nixos-23.05";
conduit = {
2024-01-25 10:05:22 +01:00
url = "gitlab:famedly/conduit";
2023-07-30 16:24:46 +02:00
};
2023-04-25 15:57:59 +02:00
};
2024-01-25 10:05:22 +01:00
outputs = {
self,
nixpkgsOld,
nixpkgs,
nixpkgsUnstable,
...
} @ inputs: let
hostPkgs = import nixpkgs {system = "x86_64-linux";};
in {
devShell."x86_64-linux" = with hostPkgs;
mkShell {
buildInputs = [colmena pass];
2023-04-25 15:57:59 +02:00
};
2024-01-25 10:05:22 +01:00
colmena = {
meta = {
nixpkgs = import nixpkgs {
system = "aarch64-linux";
overlays = [];
};
specialArgs = {
inherit inputs nixpkgsUnstable;
pkgsUnstable = import nixpkgsUnstable {
2023-04-25 15:57:59 +02:00
system = "aarch64-linux";
overlays = [];
};
2024-01-25 10:05:22 +01:00
pkgsOld = import nixpkgsOld {
system = "aarch64-linux";
overlays = [];
};
2023-04-25 15:57:59 +02:00
};
2024-01-25 10:05:22 +01:00
};
2023-04-25 15:57:59 +02:00
2024-01-25 10:05:22 +01:00
katzencafe = {
name,
nodes,
pkgs,
pkgsUnstable,
inputs,
...
}: {
deployment = {
targetHost = "katzen.cafe";
buildOnTarget = true;
2023-04-25 15:57:59 +02:00
};
2024-01-25 10:05:22 +01:00
imports = [
./modules/base-stuff.nix
./modules/proxy.nix
./modules/postgres.nix
./modules/jitsi.nix
./modules/containers
./modules/conduit.nix
./modules/keycloak.nix
./modules/forgejo.nix
./modules/mumble.nix
./modules/modded-mc.nix
./modules/monitoring.nix
./modules/mailserver.nix
./modules/vaultwarden.nix
./modules/hedgedoc.nix
./modules/invidious.nix
];
system.stateVersion = "22.11";
2023-04-25 15:57:59 +02:00
};
};
2024-01-25 10:05:22 +01:00
};
2023-04-25 15:57:59 +02:00
}