implemented all of the currently available server
This commit is contained in:
@@ -29,6 +29,10 @@ in
|
||||
style = "row";
|
||||
columns = 4;
|
||||
};
|
||||
"Other" = {
|
||||
style = "row";
|
||||
columns = 3;
|
||||
};
|
||||
};
|
||||
background = "https://images.unsplash.com/photo-1502790671504-542ad42d5189?auto=format&fit=crop&w=2560&q=80";
|
||||
};
|
||||
@@ -75,6 +79,13 @@ in
|
||||
{ inherit (services) "qbittorrent miniserver"; }
|
||||
];
|
||||
}
|
||||
{
|
||||
"Other" = [
|
||||
{ inherit (services) mealie; }
|
||||
{ inherit (services) nextcloud; }
|
||||
{ inherit (services) paperless; }
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
nginx.virtualHosts."${cfg.host}" = lib.mkIf cfg.enableProxy (
|
||||
|
||||
@@ -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"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
};
|
||||
};
|
||||
config = lib.mkIf config.my.servers.sabnzbd.enable {
|
||||
networking.firewall.allowedTCPPorts = [ config.my.servers.sabnzbd.port ];
|
||||
services.sabnzbd = {
|
||||
enable = true;
|
||||
group = "piracy";
|
||||
|
||||
Reference in New Issue
Block a user