mirror of
https://github.com/kmein/niveum
synced 2026-03-18 19: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";
|
zathura = swallow "${pkgs.zathura}/bin/zathura";
|
||||||
us = "${pkgs.systemd}/bin/systemctl --user";
|
us = "${pkgs.systemd}/bin/systemctl --user";
|
||||||
wcd = "source ${wcd}";
|
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}";
|
where = "source ${where}";
|
||||||
yt =
|
yt =
|
||||||
"${pkgs.youtube-dl}/bin/youtube-dl --add-metadata -ic"; # Download video link
|
"${pkgs.youtube-dl}/bin/youtube-dl --add-metadata -ic"; # Download video link
|
||||||
|
|||||||
@@ -35,21 +35,6 @@ in {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
{ services.keybase.enable = true; }
|
{ 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;
|
sound.enable = true;
|
||||||
hardware.pulseaudio.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 = {
|
krebs.urlwatch = {
|
||||||
enable = true;
|
enable = true;
|
||||||
onCalendar = "*-*-* 05:00:00";
|
onCalendar = "*-*-* 05:00:00";
|
||||||
sendmail.enable = false;
|
sendmail.enable = false;
|
||||||
telegram = {
|
telegram = {
|
||||||
enable = true;
|
enable = true;
|
||||||
chatId = [ "18980945" ];
|
chatId = [ "18980945" ];
|
||||||
botToken = lib.strings.fileContents <system-secrets/telegram/kmein.token>;
|
botToken = lib.strings.fileContents <system-secrets/telegram/kmein.token>;
|
||||||
};
|
};
|
||||||
urls = [
|
urls = [
|
||||||
# "https://michael-klonovsky.de/acta-diurna"
|
# "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" ];
|
nix.nixPath = [ "/var/src" ];
|
||||||
|
|||||||
Reference in New Issue
Block a user