wip: nix-topology #81

This commit is contained in:
Leon Schwarzäugl 2026-02-03 15:03:28 +01:00
parent a343de7a90
commit 727e1af67d
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
4 changed files with 47 additions and 35 deletions

View file

@ -1,6 +1,6 @@
{ self, lib, config, globals, dns, confLib, ... }:
{ lib, config, globals, dns, confLib, ... }:
let
inherit (confLib.gen { name = "koillection"; port = 2282; dir = "/var/lib/koillection"; }) servicePort serviceName serviceUser serviceDir serviceDomain serviceAddress proxyAddress4 proxyAddress6 topologyContainerName;
inherit (confLib.gen { name = "koillection"; port = 2282; dir = "/var/lib/koillection"; }) servicePort serviceName serviceUser serviceDir serviceDomain serviceAddress proxyAddress4 proxyAddress6;
inherit (confLib.static) isHome isProxied webProxy homeWebProxy dnsServer homeProxyIf webProxyIf homeServiceAddress nginxAccessRules;
serviceDB = "koillection";
@ -24,11 +24,13 @@ in
koillection-env-file = { inherit sopsFile; };
};
topology.nodes.${topologyContainerName}.services.${serviceName} = {
name = lib.swarselsystems.toCapitalized serviceName;
info = "https://${serviceDomain}";
icon = "${self}/files/topology-images/${serviceName}.png";
};
# topology.nodes.${topologyContainerName}.services.${serviceName} = {
# name = lib.swarselsystems.toCapitalized serviceName;
# info = "https://${serviceDomain}";
# icon = "${self}/files/topology-images/${serviceName}.png";
# };
topology.serviceRegistry.koillection.oci.repos = [ "koillection" ];
globals = {
networks = {