Compare commits

..

3 Commits

Author SHA1 Message Date
Noah Masur
63434c8309 docs: add new users to thelounge 2024-02-25 19:03:58 +00:00
Noah Masur
1a5fe54d06 jujutsu shell integration setting deprecated 2024-02-25 19:01:59 +00:00
Noah Masur
b2cfdc1fdf add thelounge irc client 2024-02-25 18:50:00 +00:00
7 changed files with 40 additions and 1 deletions

View File

@ -237,6 +237,7 @@
hostnames = {
git = "git.${baseName}";
influxdb = "influxdb.${baseName}";
irc = "irc.${baseName}";
metrics = "metrics.${baseName}";
prometheus = "prom.${baseName}";
paperless = "paper.${baseName}";

View File

@ -59,6 +59,7 @@ inputs.nixpkgs.lib.nixosSystem {
giteaRunner.enable = true;
services.caddy.enable = true;
services.grafana.enable = true;
services.thelounge.enable = true;
services.openssh.enable = true;
services.victoriametrics.enable = true;
services.influxdb2.enable = true;

View File

@ -107,6 +107,10 @@
type = lib.types.str;
description = "Hostname for download services.";
};
irc = lib.mkOption {
type = lib.types.str;
description = "Hostname for IRC services.";
};
};
};

View File

@ -4,7 +4,6 @@
home-manager.users.${config.user}.programs.jujutsu = {
enable = true;
enableFishIntegration = false; # Temp: not working
# https://github.com/martinvonz/jj/blob/main/docs/config.md
settings = {

View File

@ -11,6 +11,7 @@
./calibre.nix
./cloudflare-tunnel.nix
./cloudflare.nix
./irc.nix
./gitea-runner.nix
./gitea.nix
./gnupg.nix

View File

@ -50,6 +50,7 @@ in {
dashboards.settings.providers = [{
name = "test";
type = "file";
allowUiUpdates = true;
options.path = "${
(pkgs.writeTextDir "dashboards/dashboard.json" (builtins.toJSON {
annotations = {

View File

@ -0,0 +1,32 @@
{ config, ... }: {
config = {
services.thelounge = {
public = false;
port = 9000;
extraConfig = {
reverseProxy = true;
maxHistory = 10000;
};
};
# Adding new users:
# nix shell nixpkgs#thelounge
# sudo su - thelounge -s /bin/sh -c "thelounge add myuser"
# Allow web traffic to Caddy
caddy.routes = [{
match = [{ host = [ config.hostnames.irc ]; }];
handle = [{
handler = "reverse_proxy";
upstreams = [{
dial =
"localhost:${builtins.toString config.services.thelounge.port}";
}];
}];
}];
};
}