webapps: introduce module with multiple configurations including dashboard

This commit is contained in:
Felix Buehler 2022-01-23 23:35:00 +01:00
parent 9ea187f809
commit cb7bd7a6eb
9 changed files with 288 additions and 31 deletions

View file

@ -0,0 +1,31 @@
{ config, pkgs, ... }:
{
services.prowlarr = {
enable = true;
openFirewall = true;
};
systemd.services.prowlarr = {
after = [ "network-online.target" ];
#unitConfig.RequiresMountsFor = [ "/storage" ];
};
webapps.apps.prowlarr = {
dashboard = {
name = "Prowlarr";
category = "manag";
icon = "sync-alt";
link = "http://192.168.178.60:9696";
};
};
# ugly fix for service not having a homedirectory
users.users.prowlarr = {
isSystemUser = true;
home = "/var/lib/prowlarr";
group = "prowlarr";
uid = 61654;
};
users.groups.prowlarr = {
gid = 61654;
};
}