add nexus , disable 7dtd

This commit is contained in:
stubbfelnewpc
2020-10-24 19:09:39 +02:00
parent df37c6ae9f
commit ea86e52edc
3 changed files with 37 additions and 6 deletions

View File

@@ -31,7 +31,7 @@ in
Type = "simple";
User = "sshuser";
Group = "users";
WorkingDirectory = "/home/sshuser/SteamCMD7_Days_to_Die_server";
WorkingDirectory = "/home/sshuser/SteamCMD7_Days_to_Die_server";
ExecStart = "${runEnv}/bin/7dtd-env";
Restart = "always";
};

View File

@@ -3,17 +3,18 @@
{
imports =
[
./7dtd.nix
#./7dtd.nix
./sshd.nix
./teamspeak.nix
./nginx.nix
# ./gitlab.nix
#./gitlab.nix
./nextcloud.nix
./news2kindle.nix
./resilio.nix
./sks.nix
./gitea.nix
# ./wireguard.nix
# ./mqtt.nix
./gitea.nix
./nexus.nix
#./wireguard.nix
#./mqtt.nix
];
}

30
services/nexus.nix Normal file
View File

@@ -0,0 +1,30 @@
{ config, pkgs, ...}:
let
lAddress = "127.0.0.1";
lPort = 9081;
nexusPkgs = pkgs.nexus.overrideAttrs (oldAttrs: rec {
pname = "nexus";
version = "3.28.1-01";
sourceRoot = "${pname}-${version}";
src = pkgs.fetchurl {
url = "https://sonatype-download.global.ssl.fastly.net/nexus/3/nexus-${version}-unix.tar.gz";
sha256 = "0qba2qaz85hf0vgix3qyqdl8yzdb6qr91sgdmxv3fgjhyvnvqyy8";
};
});
in
{
services.nginx.virtualHosts."nexus.*" = {
enableACME = false;
forceSSL = false;
locations."/".proxyPass = "http://${lAddress}:${toString lPort}";
};
services.nexus= {
enable = true;
listenAddress = lAddress;
listenPort = lPort;
package = nexusPkgs;
};
}