diff --git a/machines/hackens-org/_configuration.nix b/machines/hackens-org/_configuration.nix index 651eff3..568a32a 100644 --- a/machines/hackens-org/_configuration.nix +++ b/machines/hackens-org/_configuration.nix @@ -11,6 +11,7 @@ ./_ssh.nix ./_users.nix ./dokuwiki.nix + ./thelounge.nix ./hardware-configuration.nix ./matterbridge.nix ./nginx.nix diff --git a/machines/hackens-org/thelounge.nix b/machines/hackens-org/thelounge.nix new file mode 100644 index 0000000..d708591 --- /dev/null +++ b/machines/hackens-org/thelounge.nix @@ -0,0 +1,40 @@ +{ + pkgs, + lib, + config, + ... +}: { + services.thelounge = { + enable = true; + port = 9000; + extraConfig = { + reverseProxy = true; + host = "127.0.0.1"; + public = false; + prefetch = true; + fileUpload = { + enable = true; + }; + + defaults= { + name= "ulminfo"; + host= "ulminfo.fr"; + port= 3725; + password= ""; + tls= true; + rejectUnauthorized= true; + join= "#hackens"; + }; + }; + }; + services.nginx.enable = true; + services.nginx.virtualHosts."irc.hackens.org" = { + forceSSL = true; + enableACME = true; + locations."/" = { + proxyPass = "http://localhost:9000"; + proxyWebsockets = true; + }; + }; + networking.firewall.allowedTCPPorts = [80 443]; +}