update bebe url
This commit is contained in:
@@ -4,10 +4,9 @@
|
|||||||
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
|
||||||
@@ -20,7 +19,6 @@
|
|||||||
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";
|
title = "bebe";
|
||||||
url = "https://bebe.lan";
|
url = "https://bebe.blakedheld.xyz";
|
||||||
error-url = "https://10.10.0.1";
|
error-url = "https://10.10.0.1";
|
||||||
check-url = "https://10.10.0.1";
|
check-url = "https://10.10.0.1";
|
||||||
icon = "di:unifi";
|
icon = "di:unifi";
|
||||||
allow-insecure = true; }];
|
allow-insecure = true;
|
||||||
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user