diff options
author | tv <tv@krebsco.de> | 2023-09-05 21:11:11 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2023-09-05 21:38:52 +0200 |
commit | 90b1515dcd5b67a85cd92901fb211764b1fa5f83 (patch) | |
tree | 8b8a1a979085983d9759d51f790f849564e11250 /tv/2configs | |
parent | f9adf3af97b7f4be5dcd314fa45138fc59cc1b7f (diff) |
tv weechat-server: init
Diffstat (limited to 'tv/2configs')
-rw-r--r-- | tv/2configs/weechat-server.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tv/2configs/weechat-server.nix b/tv/2configs/weechat-server.nix new file mode 100644 index 000000000..41f157c35 --- /dev/null +++ b/tv/2configs/weechat-server.nix @@ -0,0 +1,24 @@ +{ config, pkgs, ... }: { + users.users.tv.packages = [ + (pkgs.writers.writeDashBin "weechat-client" '' + set -efu + exec ${pkgs.tmux}/bin/tmux attach -t weechat + '') + ]; + systemd.services.weechat = { + wantedBy = [ "multi-user.target" ]; + environment = { + TERM = "rxvt-unicode-256color"; + }; + serviceConfig = { + ExecStart = "${pkgs.tmux}/bin/tmux new -d -s weechat ${pkgs.weechat}/bin/weechat"; + OOMScoreAdjust = -1000; + Restart = "always"; + RestartSec = "100ms"; + Type = "forking"; + StartLimitBurst = 0; + User = "tv"; + WorkingDirectory = "/home/tv"; + }; + }; +} |