services/thelounge: move to parsons
This commit is contained in:
parent
84ac81435e
commit
4b11dbf1d4
3 changed files with 18 additions and 10 deletions
|
@ -20,7 +20,6 @@
|
||||||
./services/monitoring.nix
|
./services/monitoring.nix
|
||||||
./services/workadventure.nix
|
./services/workadventure.nix
|
||||||
./services/mattermost.nix
|
./services/mattermost.nix
|
||||||
./services/thelounge.nix
|
|
||||||
];
|
];
|
||||||
boot.loader.grub.enable = true;
|
boot.loader.grub.enable = true;
|
||||||
boot.loader.grub.version = 2;
|
boot.loader.grub.version = 2;
|
||||||
|
|
|
@ -9,7 +9,8 @@
|
||||||
((import sources.nix-hexchen) {}).profiles.nopersist
|
((import sources.nix-hexchen) {}).profiles.nopersist
|
||||||
|
|
||||||
../../services/nextcloud
|
../../services/nextcloud
|
||||||
../../services/mattermost.nix
|
../../services/mattermost.nix
|
||||||
|
../../services/thelounge.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
hexchen.encboot = {
|
hexchen.encboot = {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, evalConfig, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
# necessary since overlays won't propagate into the
|
# necessary since overlays won't propagate into the
|
||||||
|
@ -9,10 +9,20 @@ in
|
||||||
containers.thelounge = {
|
containers.thelounge = {
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
privateNetwork = true;
|
privateNetwork = true;
|
||||||
hostAddress = "192.168.100.70";
|
hostAddress = "192.168.100.1";
|
||||||
localAddress = "192.168.100.71";
|
localAddress = "192.168.100.4";
|
||||||
|
|
||||||
config = {pkgs, config, ...}: {
|
path = (evalConfig {hosts = {}; groups = {};} ({ config, lib, pkgs, profiles, modules, sources, ... }: {
|
||||||
|
boot.isContainer = true;
|
||||||
|
networking.useDHCP = false;
|
||||||
|
users.users.root.hashedPassword = "";
|
||||||
|
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
networking.firewall.enable = false;
|
||||||
|
networking.defaultGateway = {
|
||||||
|
address = "192.168.100.1";
|
||||||
|
interface = "eth0";
|
||||||
|
};
|
||||||
|
|
||||||
services.thelounge = {
|
services.thelounge = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -30,7 +40,7 @@ in
|
||||||
# yes, please do actually check the cert …
|
# yes, please do actually check the cert …
|
||||||
rejectUnauthorized = true;
|
rejectUnauthorized = true;
|
||||||
nick = "Guest%%%%";
|
nick = "Guest%%%%";
|
||||||
join = "#thelounge";
|
join = "#hacc-webchat";
|
||||||
};
|
};
|
||||||
lockNetwork = true;
|
lockNetwork = true;
|
||||||
|
|
||||||
|
@ -55,9 +65,7 @@ in
|
||||||
# override the package we use
|
# override the package we use
|
||||||
systemd.services.thelounge.serviceConfig.ExecStart =
|
systemd.services.thelounge.serviceConfig.ExecStart =
|
||||||
pkgs.lib.mkForce "${thelounge}/bin/thelounge start";
|
pkgs.lib.mkForce "${thelounge}/bin/thelounge start";
|
||||||
|
})).config.system.build.toplevel;
|
||||||
networking.firewall.allowedTCPPorts = [ 9000 ];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts."webchat.voc.hacc.space" = {
|
services.nginx.virtualHosts."webchat.voc.hacc.space" = {
|
Loading…
Reference in a new issue