Compare commits

...

2 Commits

Author SHA1 Message Date
jolheiser 595e74caa8
feat: senpai
Signed-off-by: jolheiser <git@jolheiser.com>
2024-07-18 16:33:56 -05:00
jolheiser 6800193a85
feat: soju
Signed-off-by: jolheiser <git@jolheiser.com>
2024-07-18 16:33:48 -05:00
6 changed files with 50 additions and 3 deletions

View File

@ -6,7 +6,7 @@
./ghostty.nix
./gtk.nix
./spotify.nix
./tiny.nix
#./tiny.nix
./wezterm.nix
./zed.nix
];

View File

@ -19,6 +19,7 @@
./lazygit.nix
./nushell.nix
./oh-my-posh.nix
./senpai.nix
./ssh.nix
./xdg.nix
./zoxide.nix

View File

@ -0,0 +1,12 @@
{config, ...}: {
programs.senpai = {
enable = true;
config = {
address = "ircs+insecure://irc.jolheiser.com:6697";
nickname = "jolheiser";
password-cmd = ["cat" "${config.age.secrets.irc-pw.path}"];
#channel = "#pico.sh #gitea";
typings = false;
};
};
}

View File

@ -70,6 +70,9 @@ in {
"recipes.jolheiser.com".extraConfig = ''
reverse_proxy localhost:3663
'';
"irc.jolheiser.com".extraConfig = ''
reverse_proxy localhost:7658
'';
};
};
}

View File

@ -2,7 +2,7 @@ let
username = "jolheiser";
key = ''ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDfKqCWtDlS3tgvfT6hQN+ii8UtabIZ+ZNmYN+bLwIa8PHOEW5MbfaqXSlhKkSi4+7SfQDCHphw0SMfhsQ4qMEcoywZ+4niDgKlQEVkl+S/VGbLuPe92NRStkyreZBLPr3Rh7ScNlGHcmHmoV9v7725fMnsMmabGVhpGO84PwNHOfJyv2tx2h6LxFbAV8S44UQu2lc8YLWCK2UvKuRnBerBXLnDQThUUX8UuCFzb786gQzD5XDU0MENbByxiy0XdVGAC+tFXEiSIgFZlFbFYyShgdTP9MzX2MOglEi+ae+1UIFncraW7ptUey7qHFJylpHWWWvE+GTwsg2G50i0FvFj jolheiser@jolheiser'';
in {
imports = [./caddy.nix ./dex.nix ./git-pr.nix ./golink.nix ./gotosocial.nix ./restic.nix ./tandoor.nix ./ugit.nix ./vikunja.nix ./hardware.nix];
imports = [./caddy.nix ./dex.nix ./git-pr.nix ./golink.nix ./gotosocial.nix ./restic.nix ./soju.nix ./tandoor.nix ./ugit.nix ./vikunja.nix ./hardware.nix];
boot.tmp.cleanOnBoot = true;
zramSwap.enable = true;
@ -12,7 +12,7 @@ in {
firewall = {
enable = true;
allowedTCPPorts = [80 443];
allowedTCPPorts = [80 443 6697];
};
};

View File

@ -0,0 +1,31 @@
{lib, ...}: let
baseCertPath = "/var/lib/acme/irc.jolheiser.com";
in {
security.acme = {
acceptTerms = true;
email = "irc@jolheiser.com";
certs."irc.jolheiser.com" = {
listenHTTP = ":7658";
postRun = "systemctl reload soju";
group = "soju";
};
};
services.soju = {
enable = true;
tlsCertificate = "${baseCertPath}/fullchain.pem";
tlsCertificateKey = "${baseCertPath}/key.pem";
};
systemd.services.soju.serviceConfig = {
DynamicUser = lib.mkForce false;
User = "soju";
Group = "soju";
ReadOnlyPaths = baseCertPath;
};
users = {
users.soju = {
isSystemUser = true;
group = "soju";
};
groups.soju = {};
};
}