removed serviceBase function
This commit is contained in:
parent
8d70d160cf
commit
a02bbd1cc9
@ -1,10 +1,6 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
let
|
||||
setup = import ./servers/base.nix { inherit lib config; };
|
||||
serviceBase = {
|
||||
enable = true;
|
||||
group = "piracy";
|
||||
};
|
||||
proxy = locations: {
|
||||
inherit locations;
|
||||
forceSSL = true;
|
||||
@ -45,12 +41,10 @@ in {
|
||||
./servers/paperless.nix
|
||||
./servers/postgres.nix
|
||||
(import ./servers/audiobookshelf.nix { inherit lib config proxy setup; })
|
||||
(import ./servers/bazarr.nix {
|
||||
inherit lib config serviceBase proxyReverse;
|
||||
})
|
||||
(import ./servers/bazarr.nix { inherit lib config proxyReverse; })
|
||||
(import ./servers/flame.nix { inherit lib config proxyReverse; })
|
||||
(import ./servers/homepage.nix { inherit lib config pkgs proxyReverse; })
|
||||
(import ./servers/jellyfin.nix { inherit lib config pkgs serviceBase; })
|
||||
(import ./servers/jellyfin.nix { inherit lib config pkgs setup; })
|
||||
(import ./servers/kavita.nix { inherit lib config pkgs proxyReverse; })
|
||||
(import ./servers/lidarr.nix { inherit lib config proxyReverseArr; })
|
||||
(import ./servers/maloja.nix { inherit lib config proxyReverse; })
|
||||
@ -58,17 +52,13 @@ in {
|
||||
(import ./servers/metube.nix { inherit lib config proxyReverse; })
|
||||
(import ./servers/microbin.nix { inherit lib config proxyReverse; })
|
||||
(import ./servers/multi-scrobbler.nix { inherit lib config proxyReverse; })
|
||||
(import ./servers/nextcloud.nix { inherit lib config pkgs serviceBase; })
|
||||
(import ./servers/nextcloud.nix { inherit lib config pkgs; })
|
||||
(import ./servers/prowlarr.nix { inherit lib config proxyReverseArr; })
|
||||
(import ./servers/qbittorrent.nix { inherit lib config pkgs proxyReverse; })
|
||||
(import ./servers/radarr.nix {
|
||||
inherit lib config serviceBase proxyReverseArr;
|
||||
})
|
||||
(import ./servers/radarr.nix { inherit lib config proxyReverseArr; })
|
||||
(import ./servers/ryot.nix { inherit lib config proxyReverse; })
|
||||
(import ./servers/shiori.nix { inherit lib config pkgs proxyReverse; })
|
||||
(import ./servers/sonarr.nix {
|
||||
inherit lib config serviceBase proxyReverse;
|
||||
})
|
||||
(import ./servers/sonarr.nix { inherit lib config proxyReverse; })
|
||||
(import ./servers/vaultwarden.nix { inherit lib config pkgs proxyReverse; })
|
||||
(import ./servers/firefly-iii.nix { inherit lib config pkgs proxyReverse; })
|
||||
];
|
||||
|
||||
@ -1,8 +1,11 @@
|
||||
{ lib, config, serviceBase, proxyReverse, ... }: {
|
||||
{ lib, config, proxyReverse, ... }: {
|
||||
options.my.servers.bazarr.enable = lib.mkEnableOption "enable";
|
||||
config = lib.mkIf config.my.servers.bazarr.enable {
|
||||
services = {
|
||||
bazarr = serviceBase // { };
|
||||
bazarr = {
|
||||
enable = true;
|
||||
group = "piracy";
|
||||
};
|
||||
nginx = {
|
||||
enable = true;
|
||||
virtualHosts."subs.${config.my.domain}" =
|
||||
|
||||
@ -1,8 +1,11 @@
|
||||
{ lib, config, serviceBase, proxyReverseArr, ... }: {
|
||||
{ lib, config, proxyReverseArr, ... }: {
|
||||
options.my.servers.radarr.enable = lib.mkEnableOption "enable";
|
||||
config = lib.mkIf config.my.servers.radarr.enable {
|
||||
services = {
|
||||
radarr = serviceBase // { };
|
||||
radarr = {
|
||||
enable = true;
|
||||
group = "piracy";
|
||||
};
|
||||
nginx = {
|
||||
enable = true;
|
||||
virtualHosts."movies.${config.my.domain}" = proxyReverseArr 7878 // { };
|
||||
|
||||
@ -1,8 +1,11 @@
|
||||
{ lib, config, serviceBase, proxyReverse, ... }: {
|
||||
{ lib, config, proxyReverse, ... }: {
|
||||
options.my.servers.sonarr.enable = lib.mkEnableOption "enable";
|
||||
config = lib.mkIf config.my.servers.sonarr.enable {
|
||||
services = {
|
||||
sonarr = serviceBase // { };
|
||||
sonarr = {
|
||||
enable = true;
|
||||
group = "piracy";
|
||||
};
|
||||
nginx = {
|
||||
enable = true;
|
||||
virtualHosts."series.${config.my.domain}" = proxyReverse 8989 // { };
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user