infrastructure/systems/tei/nixos.nix
2024-01-14 09:40:38 -08:00

32 lines
616 B
Nix

{
meta,
lib,
...
}: {
imports = with meta; [
nixos.reisen-ct
nixos.sops
nixos.tailscale
nixos.cloudflared
nixos.postgres
nixos.nginx
nixos.access.gensokyo
nixos.access.zigbee2mqtt
nixos.vouch
nixos.kanidm
./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";
}