From ec2b7fd93e37e4c54dd3382667ed792df548053b Mon Sep 17 00:00:00 2001 From: Ashelyn Rose Date: Sat, 25 May 2024 12:59:12 -0600 Subject: [PATCH] Shift pounce config to make room for other irc stuff --- flake.nix | 2 +- hosts/nyx/include/irc.nix | 79 -------------------------------- hosts/nyx/include/irc/pounce.nix | 31 +++++++++++++ 3 files changed, 32 insertions(+), 80 deletions(-) delete mode 100644 hosts/nyx/include/irc.nix create mode 100644 hosts/nyx/include/irc/pounce.nix diff --git a/flake.nix b/flake.nix index 9ad54e9..cfeb0d2 100644 --- a/flake.nix +++ b/flake.nix @@ -65,7 +65,7 @@ ./hosts/nyx/include/services.nix ./hosts/nyx/include/proxy.nix ./hosts/nyx/include/seance.nix - ./hosts/nyx/include/irc.nix + ./hosts/nyx/include/irc/pounce.nix ]; }; diff --git a/hosts/nyx/include/irc.nix b/hosts/nyx/include/irc.nix deleted file mode 100644 index 522fb7a..0000000 --- a/hosts/nyx/include/irc.nix +++ /dev/null @@ -1,79 +0,0 @@ -{ config, lib, pkgs, ...}: { - - config.services.pounce = { - enable = true; - - networks = { - "libera.irc.tempest.dev" = { - fullChain = "/var/lib/acme/wildcard-irc.tempest.dev/fullchain.pem"; - privKey = "/var/lib/acme/wildcard-irc.tempest.dev/key.pem"; - config = { - host = "irc.libera.chat"; - nick = "tempest"; - user = "ashe"; - real = "ashe [they/it]"; - }; - }; - - "tilde.irc.tempest.dev" = { - fullChain = "/var/lib/acme/wildcard-irc.tempest.dev/fullchain.pem"; - privKey = "/var/lib/acme/wildcard-irc.tempest.dev/key.pem"; - config = { - host = "irc.tilde.chat"; - nick = "ashe"; - user = "ashe"; - real = "ashe [they/it]"; - }; - }; - }; - }; - - config.services.thelounge = { - enable = true; - port = 9000; - plugins = [ - pkgs.theLoungePlugins.themes.solarized - pkgs.theLoungePlugins.themes.solarized-fork-monospace - pkgs.theLoungePlugins.themes.midnight - pkgs.theLoungePlugins.themes.dracula - pkgs.theLoungePlugins.themes.purplenight - pkgs.theLoungePlugins.themes.new-morning - pkgs.theLoungePlugins.themes.zenburn-sourcecodepro - ]; - - extraConfig = { - host = "127.0.0.1"; - bind = "104.168.211.198"; - reverseProxy = true; - fileUpload = { - enable = true; - maxFileSize = 10240; # kb - baseURL = "https://irc.tempest.dev/"; - }; - leaveMessage = "bye"; - }; - }; - - config.services.solanum = { - enable = true; - - config = '' - serverinfo { - name = "irc.tempest.dev"; - sid = "0tm"; - description = "tempest test server"; - network_name = "tempest irc"; - vhost = "0.0.0.0"; - }; - - listen { - host = "127.0.0.1"; - port = 6667; - }; - ''; - - motd = '' - Test? - ''; - }; -} diff --git a/hosts/nyx/include/irc/pounce.nix b/hosts/nyx/include/irc/pounce.nix new file mode 100644 index 0000000..5db5aa5 --- /dev/null +++ b/hosts/nyx/include/irc/pounce.nix @@ -0,0 +1,31 @@ +{ config, lib, pkgs, ...}: { + + config.services.pounce = { + enable = true; + + networks = { + "libera.irc.tempest.dev" = { + fullChain = "/var/lib/acme/wildcard-irc.tempest.dev/fullchain.pem"; + privKey = "/var/lib/acme/wildcard-irc.tempest.dev/key.pem"; + config = { + host = "irc.libera.chat"; + nick = "tempest"; + user = "ashe"; + real = "ashe [they/it]"; + }; + }; + + "tilde.irc.tempest.dev" = { + fullChain = "/var/lib/acme/wildcard-irc.tempest.dev/fullchain.pem"; + privKey = "/var/lib/acme/wildcard-irc.tempest.dev/key.pem"; + config = { + host = "irc.tilde.chat"; + nick = "ashe"; + user = "ashe"; + real = "ashe [they/it]"; + }; + }; + }; + }; + +}