mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
35 lines
659 B
Nix
35 lines
659 B
Nix
{
|
|
meta,
|
|
lib,
|
|
...
|
|
}: {
|
|
imports = let
|
|
inherit (meta) nixos;
|
|
in [
|
|
nixos.reisen-ct
|
|
nixos.sops
|
|
nixos.tailscale
|
|
nixos.cloudflared
|
|
nixos.postgres
|
|
nixos.nginx
|
|
nixos.access.gensokyo
|
|
nixos.access.zigbee2mqtt
|
|
nixos.vouch
|
|
nixos.kanidm
|
|
nixos.syncplay
|
|
./cloudflared.nix
|
|
];
|
|
|
|
sops.defaultSopsFile = ./secrets.yaml;
|
|
|
|
services.nginx.access.zigbee2mqtt = let
|
|
inherit (meta.network.nodes) tewi;
|
|
z2m = tewi.services.zigbee2mqtt;
|
|
in {
|
|
inherit (z2m) domain;
|
|
inherit (z2m.settings.frontend) port;
|
|
host = tewi.networking.access.hostnameForNetwork.tail;
|
|
};
|
|
|
|
system.stateVersion = "23.11";
|
|
}
|