feat: install readarr
This commit is contained in:
parent
b5c3d6419c
commit
7af587d546
5 changed files with 131 additions and 75 deletions
33
modules/nixos/features/readarr.nix
Normal file
33
modules/nixos/features/readarr.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
let
|
||||
port = 5016;
|
||||
in
|
||||
{
|
||||
services = {
|
||||
readarr = {
|
||||
enable = true;
|
||||
dataDir = "/srv/readarr";
|
||||
settings.server = {
|
||||
inherit port;
|
||||
};
|
||||
group = "media";
|
||||
};
|
||||
|
||||
# borgmatic.settings = {
|
||||
# source_directories = [ ];
|
||||
# postgresql_databases = [
|
||||
# {
|
||||
# name = "readarr";
|
||||
# hostname = "localhost";
|
||||
# username = "root";
|
||||
# password = "{credential systemd borgmatic-pg}";
|
||||
# }
|
||||
# ];
|
||||
# };
|
||||
|
||||
nginx.virtualHosts."readarr.fi33.buzz" = {
|
||||
forceSSL = true;
|
||||
useACMEHost = "fi33.buzz";
|
||||
locations."/".proxyPass = "http://localhost:${toString port}";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue