From 29385fdfac38e21a2bd6a1acb62c4cc3360604e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Tue, 27 Oct 2020 19:06:58 +0100 Subject: [PATCH] feat(toum): add irc-bouncer --- systems/toum/configuration.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/systems/toum/configuration.nix b/systems/toum/configuration.nix index 410b1fa..9cbcfd4 100644 --- a/systems/toum/configuration.nix +++ b/systems/toum/configuration.nix @@ -35,6 +35,21 @@ 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;