mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 09:54:40 +02:00
service/prowlarr: init from legacy
This commit is contained in:
parent
c9311fdf4f
commit
38d30d725b
5 changed files with 52 additions and 32 deletions
|
@ -19,6 +19,7 @@
|
|||
./paperless
|
||||
./passworts
|
||||
./photoprism
|
||||
./prowlarr
|
||||
./radarr
|
||||
./rss-bridge
|
||||
./sonarr
|
||||
|
|
48
modules/services/prowlarr/default.nix
Normal file
48
modules/services/prowlarr/default.nix
Normal file
|
@ -0,0 +1,48 @@
|
|||
# manages indexes
|
||||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
cfg = config.my.services.prowlarr;
|
||||
domain = config.networking.domain;
|
||||
port = 9696;
|
||||
in
|
||||
{
|
||||
options.my.services.prowlarr = with lib; {
|
||||
enable = mkEnableOption "Prowlarr for indexing";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.prowlarr = {
|
||||
enable = true;
|
||||
};
|
||||
# # 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;
|
||||
# };
|
||||
|
||||
systemd.services.prowlarr = {
|
||||
after = [ "network-online.target" ];
|
||||
};
|
||||
|
||||
my.services.nginx.virtualHosts = [
|
||||
{
|
||||
subdomain = "movies";
|
||||
inherit port;
|
||||
}
|
||||
];
|
||||
|
||||
webapps.apps.prowlarr = {
|
||||
dashboard = {
|
||||
name = "Prowlarr";
|
||||
category = "manag";
|
||||
icon = "sync-alt";
|
||||
link = "https://indexer.${domain}";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue