summaryrefslogtreecommitdiff
path: root/nix/modules/ngircd.nix
diff options
context:
space:
mode:
authorPreston Pan <ret2pop@gmail.com>2025-03-21 04:52:46 -0700
committerPreston Pan <ret2pop@gmail.com>2025-03-21 04:52:46 -0700
commit00c9e35779cbb298d6395a6e2c2534007a92976f (patch)
treee5bfc2d375b331ba6b664ddf6152f51bfcc900df /nix/modules/ngircd.nix
parent2a4c959ef00fea785633afe44be0af77d6441a4b (diff)
add a ton of VPS upgrades; update website; live life
Diffstat (limited to 'nix/modules/ngircd.nix')
-rw-r--r--nix/modules/ngircd.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/nix/modules/ngircd.nix b/nix/modules/ngircd.nix
new file mode 100644
index 0000000..0900017
--- /dev/null
+++ b/nix/modules/ngircd.nix
@@ -0,0 +1,28 @@
+{ lib, config, ... }:
+{
+ services.ngircd = {
+ enable = lib.mkDefault config.monorepo.profiles.server.enable;
+ config = ''
+[Global]
+ Name = nullring.xyz
+ Info = NullRing IRC Instance
+ Listen = 0.0.0.0
+ MotdFile = /etc/motd.txt
+ Network = NullRing
+ Ports = 6667
+[Options]
+ PAM = no
+[SSL]
+ CertFile = /var/lib/acme/nullring.xyz/fullchain.pem
+ CipherList = HIGH:!aNULL:@STRENGTH:!SSLv3
+ KeyFile = /var/lib/acme/nullring.xyz/key.pem
+ Ports = 6697
+'';
+ };
+ environment.etc."motd.txt" = {
+ source = ../data/motd.txt;
+ mode = "644";
+ user = "ngircd";
+ group = "ngircd";
+ };
+}