gamja: pack properly

This commit is contained in:
2024-02-12 22:46:27 +02:00
parent dac9650b65
commit b9c73de9ce
2 changed files with 52 additions and 48 deletions

View File

@@ -4,16 +4,7 @@
pkgs,
myData,
...
}: let
# TODO: this doesn't get added to the compressed version
gamja = pkgs.gamja.override {
gamjaConfig = {
server = {
url = "irc.jakstys.lt:6698";
};
};
};
in {
}: {
zfs-root = {
boot = {
enable = true;
@@ -307,7 +298,16 @@ in {
"www.jakstys.lt".extraConfig = ''
redir https://jakstys.lt
'';
"irc.jakstys.lt".extraConfig = ''
"irc.jakstys.lt".extraConfig = let
gamja = pkgs.gamja.override {
gamjaConfig = {
server = {
url = "irc.jakstys.lt:6698";
nick = "motiejus";
};
};
};
in ''
@denied not remote_ip ${myData.subnets.tailscale.cidr}
abort @denied
tls {$CREDENTIALS_DIRECTORY}/irc.jakstys.lt-cert.pem {$CREDENTIALS_DIRECTORY}/irc.jakstys.lt-key.pem