update bebe url

This commit is contained in:
2026-05-13 17:22:02 -05:00
parent e7323bd7d6
commit 16c9b425c1
+44 -33
View File
@@ -4,23 +4,21 @@
lib, lib,
... ...
}: }:
/* /*
this is a wrapper module for glance that allows you to this is a wrapper module for glance that allows you to
to pass monitor entries in with nix, all declaratively! to pass monitor entries in with nix, all declaratively!
| <8yy> | | <8yy> |
V V V V
# add to glance # add to glance
homelab.glance.links.mediastack = [{ homelab.glance.links.mediastack = [{
title = service; title = service;
url = "https://${cfg.url}"; url = "https://${cfg.url}";
error-url = "http://${homelab.host_ip}:${toString cfg.port}"; error-url = "http://${homelab.host_ip}:${toString cfg.port}";
check-url = "http://${homelab.host_ip}:${toString cfg.port}"; check-url = "http://${homelab.host_ip}:${toString cfg.port}";
icon = "di:${service}"; icon = "di:${service}";
allow-insecure = true; }]; allow-insecure = true; }];
*/ */
let let
service = "glance"; service = "glance";
cfg = config.homelab.${service}; cfg = config.homelab.${service};
@@ -29,8 +27,7 @@ let
uptimekuma_url = "localhost:7901"; uptimekuma_url = "localhost:7901";
uptimekuma_page = "glance"; uptimekuma_page = "glance";
in in {
{
options.homelab.${service} = { options.homelab.${service} = {
enable = lib.mkEnableOption "enables ${service}"; enable = lib.mkEnableOption "enables ${service}";
@@ -67,24 +64,23 @@ in
links = { links = {
services = lib.mkOption { services = lib.mkOption {
type = lib.types.listOf lib.types.attrs; type = lib.types.listOf lib.types.attrs;
default = [ ]; default = [];
description = "list of links for ${service}"; description = "list of links for ${service}";
}; };
mediastack = lib.mkOption { mediastack = lib.mkOption {
type = lib.types.listOf lib.types.attrs; type = lib.types.listOf lib.types.attrs;
default = [ ]; default = [];
description = "list of links for ${service}"; description = "list of links for ${service}";
}; };
system = lib.mkOption { system = lib.mkOption {
type = lib.types.listOf lib.types.attrs; type = lib.types.listOf lib.types.attrs;
default = [ ]; default = [];
description = "list of links for ${service}"; description = "list of links for ${service}";
}; };
}; };
}; };
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
# declare ${service} group # declare ${service} group
users.groups.${service} = { users.groups.${service} = {
gid = lib.mkForce cfg.ids; gid = lib.mkForce cfg.ids;
@@ -98,7 +94,7 @@ in
home = cfg.data_dir; home = cfg.data_dir;
createHome = true; createHome = true;
group = service; group = service;
extraGroups = [ ]; extraGroups = [];
}; };
services.${service} = { services.${service} = {
@@ -144,10 +140,22 @@ in
name = config.networking.hostName; name = config.networking.hostName;
hide-mountpoints-by-default = true; hide-mountpoints-by-default = true;
mountpoints = { mountpoints = {
"/" = {name = "root"; hide = false;}; "/" = {
"/holocron" = {name = "holocron"; hide = false;}; name = "root";
"/holocron/media" = {name = "media"; hide = false;}; hide = false;
"/holocron/vault" = {name = "vault"; hide = false;}; };
"/holocron" = {
name = "holocron";
hide = false;
};
"/holocron/media" = {
name = "media";
hide = false;
};
"/holocron/vault" = {
name = "vault";
hide = false;
};
}; };
} }
]; ];
@@ -323,17 +331,20 @@ in
# add to backups # add to backups
homelab.backups.baks = { homelab.backups.baks = {
${service} = { ${service} = {
paths = [ cfg.data_dir "/var/lib/private" ]; paths = [cfg.data_dir "/var/lib/private"];
}; };
}; };
# add to udr to glance # add to udr to glance
homelab.glance.links.system = [{ homelab.glance.links.system = [
title = "bebe"; {
url = "https://bebe.lan"; title = "bebe";
error-url = "https://10.10.0.1"; url = "https://bebe.blakedheld.xyz";
check-url = "https://10.10.0.1"; error-url = "https://10.10.0.1";
icon = "di:unifi"; check-url = "https://10.10.0.1";
allow-insecure = true; }]; icon = "di:unifi";
allow-insecure = true;
}
];
}; };
} }