From f3524267b88da6c4e2a2162a137576961aecff51 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Fri, 3 Nov 2023 14:13:44 -0500 Subject: [PATCH] Add weechat tmux service to beefcake --- nixos/beefcake/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/nixos/beefcake/default.nix b/nixos/beefcake/default.nix index b0a1864..45a941d 100644 --- a/nixos/beefcake/default.nix +++ b/nixos/beefcake/default.nix @@ -255,6 +255,15 @@ sudo nix run nixpkgs#ipmitool -- raw 0x30 0x30 0x02 0xff 0x00 environment.systemPackages = [pkgs.linuxquota]; + systemd.services.weechat-in-tmux = { + serviceConfig = { + Type = "oneshot"; + RemainAfterExit = true; + ExecStart = "${pkgs.tmux}/bin/tmux -2 new-session -d -s weechat ${pkgs.weechat}/bin/weechat"; + ExecStop = "${pkgs.tmux}/bin/tmux kill-session -t weechat"; + }; + }; + # TODO: make the client declarative? right now I think it's manually git # clone'd to /root systemd.services.deno-netlify-ddns-client = {