mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
feat(toum): run irc bouncer
This commit is contained in:
@@ -175,7 +175,7 @@ in {
|
||||
zathura = swallow "${pkgs.zathura}/bin/zathura";
|
||||
us = "${pkgs.systemd}/bin/systemctl --user";
|
||||
wcd = "source ${wcd}";
|
||||
weechat = "${pkgs.openssh}/bin/ssh kmein@prism.r -t tmux attach";
|
||||
weechat = "${pkgs.openssh}/bin/ssh toum -t screen -x weechat/weechat-screen";
|
||||
where = "source ${where}";
|
||||
yt =
|
||||
"${pkgs.youtube-dl}/bin/youtube-dl --add-metadata -ic"; # Download video link
|
||||
|
||||
@@ -35,21 +35,6 @@ in {
|
||||
};
|
||||
}
|
||||
{ services.keybase.enable = true; }
|
||||
{
|
||||
systemd.services.irc-bouncer = {
|
||||
description = "IRC bouncer";
|
||||
after = [ "network.target" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
restartIfChanged = false;
|
||||
script = "${pkgs.tmux}/bin/tmux -2 new-session -d -s IRC ${pkgs.weechat}/bin/weechat";
|
||||
preStop = "${pkgs.tmux}/bin/tmux kill-session -t IRC";
|
||||
serviceConfig = {
|
||||
User = "kfm";
|
||||
RemainAfterExit = true;
|
||||
Type = "oneshot";
|
||||
};
|
||||
};
|
||||
}
|
||||
{
|
||||
sound.enable = true;
|
||||
hardware.pulseaudio.enable = true;
|
||||
@@ -59,22 +44,29 @@ in {
|
||||
'';
|
||||
}
|
||||
{
|
||||
imports = [ <stockholm/krebs/3modules/urlwatch.nix> ];
|
||||
imports = [ <stockholm/krebs/3modules/urlwatch.nix> ];
|
||||
|
||||
krebs.urlwatch = {
|
||||
enable = true;
|
||||
onCalendar = "*-*-* 05:00:00";
|
||||
sendmail.enable = false;
|
||||
telegram = {
|
||||
enable = true;
|
||||
chatId = [ "18980945" ];
|
||||
botToken = lib.strings.fileContents <system-secrets/telegram/kmein.token>;
|
||||
};
|
||||
urls = [
|
||||
krebs.urlwatch = {
|
||||
enable = true;
|
||||
onCalendar = "*-*-* 05:00:00";
|
||||
sendmail.enable = false;
|
||||
telegram = {
|
||||
enable = true;
|
||||
chatId = [ "18980945" ];
|
||||
botToken = lib.strings.fileContents <system-secrets/telegram/kmein.token>;
|
||||
};
|
||||
urls = [
|
||||
# "https://michael-klonovsky.de/acta-diurna"
|
||||
];
|
||||
};
|
||||
}
|
||||
{
|
||||
services.weechat.enable = true;
|
||||
programs.screen.screenrc = ''
|
||||
multiuser on
|
||||
acladd ${config.users.users.me.name}
|
||||
'';
|
||||
}
|
||||
];
|
||||
|
||||
nix.nixPath = [ "/var/src" ];
|
||||
|
||||
Reference in New Issue
Block a user