mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2026-04-14 21:29:12 +02:00
wip: nix-topology #81
This commit is contained in:
parent
a343de7a90
commit
727e1af67d
4 changed files with 47 additions and 35 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{ lib, config, dns, globals, confLib, ... }:
|
||||
let
|
||||
inherit (confLib.gen { name = "slink"; port = 3000; dir = "/var/lib/slink"; }) servicePort serviceName serviceDomain serviceDir serviceAddress proxyAddress4 proxyAddress6 topologyContainerName;
|
||||
inherit (confLib.gen { name = "slink"; port = 3000; dir = "/var/lib/slink"; }) servicePort serviceName serviceDomain serviceDir serviceAddress proxyAddress4 proxyAddress6;
|
||||
inherit (confLib.static) isHome isProxied webProxy homeWebProxy dnsServer homeProxyIf webProxyIf homeServiceAddress nginxAccessRules;
|
||||
|
||||
containerRev = "sha256:98b9442696f0a8cbc92f0447f54fa4bad227af5dcfd6680545fedab2ed28ddd9";
|
||||
|
|
@ -15,11 +15,13 @@ in
|
|||
podman = true;
|
||||
};
|
||||
|
||||
topology.nodes.${topologyContainerName}.services.${serviceName} = {
|
||||
name = lib.swarselsystems.toCapitalized serviceName;
|
||||
info = "https://${serviceDomain}";
|
||||
icon = "services.not-available";
|
||||
};
|
||||
# topology.nodes.${topologyContainerName}.services.${serviceName} = {
|
||||
# name = lib.swarselsystems.toCapitalized serviceName;
|
||||
# info = "https://${serviceDomain}";
|
||||
# icon = "services.not-available";
|
||||
# };
|
||||
|
||||
topology.serviceRegistry.anirdev.oci.repos = [ "slink" ];
|
||||
|
||||
virtualisation.oci-containers.containers.${serviceName} = {
|
||||
image = "anirdev/slink@${containerRev}";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue