diff --git a/machines/durruti/configuration.nix b/machines/durruti/configuration.nix index 264feff..8bb2a94 100644 --- a/machines/durruti/configuration.nix +++ b/machines/durruti/configuration.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: +{ config, lib, pkgs, inputs, ... }: with lib; @@ -19,11 +19,32 @@ with lib; ]; imports = [ + inputs.ep3-bs.nixosModules.ep3-bs ../modules/malobeo_user.nix ../modules/sshd.nix ../modules/minimal_tools.nix ]; + services.ep3-bs = { + enable = true; + in_production = false; + + mail = { + type = "smtp-tls"; + address = "dynamicdiscorddresden@systemli.org"; + host = "mail.systemli.org"; + user = "dynamicdiscorddresden@systemli.org"; + password = "E4XaTzv5hi0ClsMRtzy58uQ6D"; + auth = "plain"; + }; + + + database = { + user = "malodbuser"; + password = "aAljwdlaKQWhdakwLHdalkhwdhalaWLKhdaoiu"; + }; + }; + system.stateVersion = "22.11"; # Did you read the comment? } diff --git a/machines/durruti/host_config.nix b/machines/durruti/host_config.nix index 46d35e8..c846990 100644 --- a/machines/durruti/host_config.nix +++ b/machines/durruti/host_config.nix @@ -26,7 +26,7 @@ in { assertions = [ { - assertion = cfg.host_ip == ""; + assertion = cfg.host_ip != ""; message = '' You need to specify host_ip of the nix container ''; @@ -36,7 +36,13 @@ in services.nginx.virtualHosts."tasklist.malobeo.org" = { forceSSL = true; enableACME= true; - locations."/".proxyPass = "http://10.233.1.2:8080"; + locations."/".proxyPass = "http://${cfg.host_ip}:8080"; + }; + + services.nginx.virtualHosts."booking.dynamicdiscord.de" = { + forceSSL = true; + enableACME= true; + locations."/".proxyPass = "http://${cfg.host_ip}:80"; }; };