[durruti] add ep3-bs
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, inputs, ... }:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
@@ -19,11 +19,32 @@ with lib;
|
|||||||
];
|
];
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
|
inputs.ep3-bs.nixosModules.ep3-bs
|
||||||
../modules/malobeo_user.nix
|
../modules/malobeo_user.nix
|
||||||
../modules/sshd.nix
|
../modules/sshd.nix
|
||||||
../modules/minimal_tools.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?
|
system.stateVersion = "22.11"; # Did you read the comment?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ in
|
|||||||
{
|
{
|
||||||
assertions = [
|
assertions = [
|
||||||
{
|
{
|
||||||
assertion = cfg.host_ip == "";
|
assertion = cfg.host_ip != "";
|
||||||
message = ''
|
message = ''
|
||||||
You need to specify host_ip of the nix container
|
You need to specify host_ip of the nix container
|
||||||
'';
|
'';
|
||||||
@@ -36,7 +36,13 @@ in
|
|||||||
services.nginx.virtualHosts."tasklist.malobeo.org" = {
|
services.nginx.virtualHosts."tasklist.malobeo.org" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME= 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";
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user