homepage adjustments

This commit is contained in:
Danilo Reyes
2026-02-01 16:59:55 -06:00
parent 32545e4fec
commit 6389b9f012
9 changed files with 23 additions and 12 deletions

View File

@@ -91,7 +91,6 @@ in
"linkwarden" "linkwarden"
"oauth2-proxy" "oauth2-proxy"
"plausible" "plausible"
"readeck"
"vaultwarden" "vaultwarden"
]; ];
} }

View File

@@ -20,7 +20,6 @@ let
"multi-scrobbler" "multi-scrobbler"
"nix-serve" "nix-serve"
"plausible" "plausible"
"readeck"
"ryot" "ryot"
"shiori" "shiori"
"vaultwarden" "vaultwarden"

View File

@@ -1,10 +1,10 @@
{ {
"server bookmarks" = [ "server bookmarks" = [
{ {
readeck = [ analytics = [
{ {
abbr = "RD"; abbr = "AN";
href = "https://laters.lebubu.org/"; href = "https://analytics.lebubu.org";
description = ""; description = "";
} }
]; ];

View File

@@ -26,7 +26,7 @@
header = false; header = false;
tab = "servers"; tab = "servers";
style = "row"; style = "row";
columns = 3; columns = 4;
}; };
"server bookmarks" = { "server bookmarks" = {
header = false; header = false;

View File

@@ -188,6 +188,19 @@
version = 2; version = 2;
}; };
}; };
linkwarden =
let
cfg = config.my.servers.linkwarden;
in
lib.mkIf (cfg.enable || cfg.enableProxy) {
icon = "${cfg.name}.png";
href = cfg.url;
widget = {
url = "http://${config.my.ips.wg-server}:${toString cfg.port}";
type = cfg.name;
key = "{{HOMEPAGE_VAR_LINKWARDEN}}";
};
};
nextcloud = nextcloud =
let let
cfg = config.my.servers.nextcloud; cfg = config.my.servers.nextcloud;

View File

@@ -34,6 +34,7 @@ in
{ inherit (services) nextcloud; } { inherit (services) nextcloud; }
{ inherit (services) gitea; } { inherit (services) gitea; }
{ inherit (services) mealie; } { inherit (services) mealie; }
{ inherit (services) linkwarden; }
]; ];
} }
] ]

View File

@@ -14,7 +14,7 @@ in
services.linkwarden = { services.linkwarden = {
inherit (cfg) enable; inherit (cfg) enable;
host = cfg.ip; host = cfg.ip;
port = cfg.port; inherit (cfg) port;
openFirewall = true; openFirewall = true;
environment = { environment = {
NEXTAUTH_URL = "${cfg.url}/api/v1/auth"; NEXTAUTH_URL = "${cfg.url}/api/v1/auth";
@@ -25,7 +25,7 @@ in
environmentFile = config.sops.secrets.linkwarden.path; environmentFile = config.sops.secrets.linkwarden.path;
database = { database = {
host = config.my.postgresSocket; host = config.my.postgresSocket;
name = cfg.name; inherit (cfg) name;
user = cfg.name; user = cfg.name;
createLocally = true; createLocally = true;
}; };

View File

@@ -37,7 +37,6 @@ let
"mealie" "mealie"
"nextcloud" "nextcloud"
"paperless" "paperless"
"readeck"
"ryot" "ryot"
"shiori" "shiori"
"sonarqube" "sonarqube"

File diff suppressed because one or more lines are too long