mirror of
https://github.com/nmasur/dotfiles
synced 2025-04-24 23:12:25 +00:00
Compare commits
3 Commits
3a4568bc69
...
63434c8309
Author | SHA1 | Date | |
---|---|---|---|
|
63434c8309 | ||
|
1a5fe54d06 | ||
|
b2cfdc1fdf |
@ -237,6 +237,7 @@
|
|||||||
hostnames = {
|
hostnames = {
|
||||||
git = "git.${baseName}";
|
git = "git.${baseName}";
|
||||||
influxdb = "influxdb.${baseName}";
|
influxdb = "influxdb.${baseName}";
|
||||||
|
irc = "irc.${baseName}";
|
||||||
metrics = "metrics.${baseName}";
|
metrics = "metrics.${baseName}";
|
||||||
prometheus = "prom.${baseName}";
|
prometheus = "prom.${baseName}";
|
||||||
paperless = "paper.${baseName}";
|
paperless = "paper.${baseName}";
|
||||||
|
@ -59,6 +59,7 @@ inputs.nixpkgs.lib.nixosSystem {
|
|||||||
giteaRunner.enable = true;
|
giteaRunner.enable = true;
|
||||||
services.caddy.enable = true;
|
services.caddy.enable = true;
|
||||||
services.grafana.enable = true;
|
services.grafana.enable = true;
|
||||||
|
services.thelounge.enable = true;
|
||||||
services.openssh.enable = true;
|
services.openssh.enable = true;
|
||||||
services.victoriametrics.enable = true;
|
services.victoriametrics.enable = true;
|
||||||
services.influxdb2.enable = true;
|
services.influxdb2.enable = true;
|
||||||
|
@ -107,6 +107,10 @@
|
|||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
description = "Hostname for download services.";
|
description = "Hostname for download services.";
|
||||||
};
|
};
|
||||||
|
irc = lib.mkOption {
|
||||||
|
type = lib.types.str;
|
||||||
|
description = "Hostname for IRC services.";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
|
|
||||||
home-manager.users.${config.user}.programs.jujutsu = {
|
home-manager.users.${config.user}.programs.jujutsu = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableFishIntegration = false; # Temp: not working
|
|
||||||
|
|
||||||
# https://github.com/martinvonz/jj/blob/main/docs/config.md
|
# https://github.com/martinvonz/jj/blob/main/docs/config.md
|
||||||
settings = {
|
settings = {
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
./calibre.nix
|
./calibre.nix
|
||||||
./cloudflare-tunnel.nix
|
./cloudflare-tunnel.nix
|
||||||
./cloudflare.nix
|
./cloudflare.nix
|
||||||
|
./irc.nix
|
||||||
./gitea-runner.nix
|
./gitea-runner.nix
|
||||||
./gitea.nix
|
./gitea.nix
|
||||||
./gnupg.nix
|
./gnupg.nix
|
||||||
|
@ -50,6 +50,7 @@ in {
|
|||||||
dashboards.settings.providers = [{
|
dashboards.settings.providers = [{
|
||||||
name = "test";
|
name = "test";
|
||||||
type = "file";
|
type = "file";
|
||||||
|
allowUiUpdates = true;
|
||||||
options.path = "${
|
options.path = "${
|
||||||
(pkgs.writeTextDir "dashboards/dashboard.json" (builtins.toJSON {
|
(pkgs.writeTextDir "dashboards/dashboard.json" (builtins.toJSON {
|
||||||
annotations = {
|
annotations = {
|
||||||
|
32
modules/nixos/services/irc.nix
Normal file
32
modules/nixos/services/irc.nix
Normal 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}";
|
||||||
|
}];
|
||||||
|
}];
|
||||||
|
}];
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user