implemented all of the currently available server
This commit is contained in:
@@ -172,4 +172,57 @@
|
||||
key = "{{HOMEPAGE_VAR_SABNZBD}}";
|
||||
};
|
||||
};
|
||||
mealie =
|
||||
let
|
||||
cfg = config.my.servers.mealie;
|
||||
in
|
||||
lib.mkIf (cfg.enable || cfg.enableProxy) {
|
||||
icon = "${cfg.name}.png";
|
||||
href = cfg.url;
|
||||
widget = {
|
||||
inherit (cfg) url;
|
||||
type = cfg.name;
|
||||
key = "{{HOMEPAGE_VAR_MEALIE}}";
|
||||
version = 2;
|
||||
};
|
||||
};
|
||||
nextcloud =
|
||||
let
|
||||
cfg = config.my.servers.nextcloud;
|
||||
in
|
||||
lib.mkIf (cfg.enable || cfg.enableProxy) {
|
||||
icon = "${cfg.name}.png";
|
||||
href = cfg.url;
|
||||
widget = {
|
||||
inherit (cfg) url;
|
||||
type = cfg.name;
|
||||
username = "{{HOMEPAGE_VAR_NEXTCLOUD_USERNAME}}";
|
||||
password = "{{HOMEPAGE_VAR_NEXTCLOUD_PASSWORD}}";
|
||||
token = "{{HOMEPAGE_VAR_NEXTCLOUD_TOKEN}}";
|
||||
fields = [
|
||||
"memoryusage"
|
||||
"activeusers"
|
||||
"numfiles"
|
||||
"numshares"
|
||||
];
|
||||
};
|
||||
};
|
||||
paperless =
|
||||
let
|
||||
name = "paperlessngx";
|
||||
url = "http://${config.my.ips.miniserver}:${toString config.services.paperless.port}";
|
||||
in
|
||||
lib.mkIf config.my.servers.paperless.enable {
|
||||
icon = "paperless.png";
|
||||
href = url;
|
||||
widget = {
|
||||
type = name;
|
||||
key = "{{HOMEPAGE_VAR_PAPERLESS}}";
|
||||
inherit url;
|
||||
fields = [
|
||||
"total"
|
||||
"inbox"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user