feat: added glance to caddy

This commit is contained in:
Nick 2025-07-03 20:11:18 -05:00
parent 2205231563
commit 021eda06aa
2 changed files with 7 additions and 7 deletions

View file

@ -12,10 +12,9 @@ let
localhost = web.localhost.address0;
host = configHelpers.service.domains.url0;
};
service = glance;
configPath = ./config;
configImports = {
server = import (configPath + /server.nix) { inherit flake service; };
server = import (configPath + /server.nix) { inherit flake configHelpers; };
branding = import (configPath + /branding.nix);
theme = import (configPath + /theme.nix);
pages = import (configPath + /pages.nix) { inherit config flake; };
@ -52,7 +51,7 @@ in
sops =
let
sopsPath = secret: {
path = "/run/secrets/${service.name}-${secret}";
path = "/run/secrets/${configHelpers.service.name}-${secret}";
owner = "root";
group = "root";
mode = "644";
@ -62,7 +61,7 @@ in
secrets = builtins.listToAttrs (
map
(secret: {
name = "${service.name}-${secret}";
name = "${configHelpers.service.name}-${secret}";
value = sopsPath secret;
})
[
@ -76,7 +75,7 @@ in
networking = {
firewall = {
allowedTCPPorts = [
service.ports.port0
configHelpers.service.ports.port0
];
};
};