servers arr adjustment + formatting

This commit is contained in:
Danilo Reyes 2024-11-13 22:25:51 -06:00
parent 5f639e4a6b
commit d6a3036bd1
5 changed files with 6 additions and 19 deletions

View File

@ -1,8 +1,4 @@
{
lib,
config,
...
}:
{ lib, config, ... }:
let
cfg = config.my.servers.atticd;
setup = import ./setup.nix { inherit lib config; };
@ -35,7 +31,7 @@ in
};
};
nginx.virtualHosts."${cfg.host}" = lib.mkIf cfg.enableProxy (
setup.proxyReverse cfg.hostName cfg.port // { }
setup.proxyReverseArr cfg.hostName cfg.port // { }
);
};
};

View File

@ -17,7 +17,7 @@ in
enable = true;
openFirewall = true;
package = pkgs.nix-serve-ng;
port = cfg.port;
inherit (cfg) port;
secretKeyFile = config.sops.secrets."private_cache_keys/miniserver".path;
};
nginx.virtualHosts."${cfg.host}" = lib.mkIf cfg.enableProxy (

View File

@ -1,9 +1,4 @@
{
lib,
config,
proxyReverseArr,
...
}:
{ lib, config, ... }:
let
cfg = config.my.servers.radarr;
setup = import ./setup.nix { inherit lib config; };

View File

@ -13,7 +13,7 @@ in
group = "piracy";
};
nginx.virtualHosts."${cfg.host}" = lib.mkIf cfg.enableProxy (
setup.proxyReverse cfg.hostName cfg.port // { }
setup.proxyReverseArr cfg.hostName cfg.port // { }
);
};
};

View File

@ -1,8 +1,4 @@
{
config,
lib,
...
}:
{ config, lib, ... }:
let
setup = import ./setup.nix { inherit lib config; };
cfg = config.my.servers.tranga;