mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-08-08 21:04:38 -05:00
feat: added glance to caddy
This commit is contained in:
parent
2205231563
commit
021eda06aa
2 changed files with 7 additions and 7 deletions
|
@ -1,10 +1,11 @@
|
||||||
{ flake, service, ... }:
|
{ flake, configHelpers, ... }:
|
||||||
let
|
let
|
||||||
inherit (flake.config.people) user0;
|
inherit (flake.config.people) user0;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
assets-path = "/home/${user0}/Files/Projects/dotfiles/modules/nixos/services/glance/assets";
|
assets-path = "/home/${user0}/Files/Projects/dotfiles/modules/nixos/services/glance/assets";
|
||||||
port = service.ports.port0;
|
host = configHelpers.service.domains.url0;
|
||||||
|
port = configHelpers.service.ports.port0;
|
||||||
# auth = {
|
# auth = {
|
||||||
# secret-key = config.sops.secrets."${service.name}-key".path;
|
# secret-key = config.sops.secrets."${service.name}-key".path;
|
||||||
# users.${user0}.password = config.sops.secrets."${service.name}-${user0}-pass".path;
|
# users.${user0}.password = config.sops.secrets."${service.name}-${user0}-pass".path;
|
||||||
|
|
|
@ -12,10 +12,9 @@ let
|
||||||
localhost = web.localhost.address0;
|
localhost = web.localhost.address0;
|
||||||
host = configHelpers.service.domains.url0;
|
host = configHelpers.service.domains.url0;
|
||||||
};
|
};
|
||||||
service = glance;
|
|
||||||
configPath = ./config;
|
configPath = ./config;
|
||||||
configImports = {
|
configImports = {
|
||||||
server = import (configPath + /server.nix) { inherit flake service; };
|
server = import (configPath + /server.nix) { inherit flake configHelpers; };
|
||||||
branding = import (configPath + /branding.nix);
|
branding = import (configPath + /branding.nix);
|
||||||
theme = import (configPath + /theme.nix);
|
theme = import (configPath + /theme.nix);
|
||||||
pages = import (configPath + /pages.nix) { inherit config flake; };
|
pages = import (configPath + /pages.nix) { inherit config flake; };
|
||||||
|
@ -52,7 +51,7 @@ in
|
||||||
sops =
|
sops =
|
||||||
let
|
let
|
||||||
sopsPath = secret: {
|
sopsPath = secret: {
|
||||||
path = "/run/secrets/${service.name}-${secret}";
|
path = "/run/secrets/${configHelpers.service.name}-${secret}";
|
||||||
owner = "root";
|
owner = "root";
|
||||||
group = "root";
|
group = "root";
|
||||||
mode = "644";
|
mode = "644";
|
||||||
|
@ -62,7 +61,7 @@ in
|
||||||
secrets = builtins.listToAttrs (
|
secrets = builtins.listToAttrs (
|
||||||
map
|
map
|
||||||
(secret: {
|
(secret: {
|
||||||
name = "${service.name}-${secret}";
|
name = "${configHelpers.service.name}-${secret}";
|
||||||
value = sopsPath secret;
|
value = sopsPath secret;
|
||||||
})
|
})
|
||||||
[
|
[
|
||||||
|
@ -76,7 +75,7 @@ in
|
||||||
networking = {
|
networking = {
|
||||||
firewall = {
|
firewall = {
|
||||||
allowedTCPPorts = [
|
allowedTCPPorts = [
|
||||||
service.ports.port0
|
configHelpers.service.ports.port0
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue