1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

weechat: run in screen

This commit is contained in:
2026-02-17 20:12:14 +01:00
parent 87e39cc30b
commit e885753c7f
2 changed files with 9 additions and 6 deletions

View File

@@ -88,7 +88,7 @@ in
{ {
sxiv = swallow "${pkgs.nsxiv}/bin/nsxiv"; sxiv = swallow "${pkgs.nsxiv}/bin/nsxiv";
zathura = swallow "${pkgs.zathura}/bin/zathura"; zathura = swallow "${pkgs.zathura}/bin/zathura";
im = "${pkgs.openssh}/bin/ssh weechat@makanek -t tmux attach-session -t IM"; im = "${pkgs.openssh}/bin/ssh weechat@makanek -t screen -x weechat";
yt = "${pkgs.yt-dlp}/bin/yt-dlp --add-metadata -ic"; # Download video link yt = "${pkgs.yt-dlp}/bin/yt-dlp --add-metadata -ic"; # Download video link
yta = "${pkgs.yt-dlp}/bin/yt-dlp --add-metadata --audio-format mp3 --audio-quality 0 -xic"; # Download with audio yta = "${pkgs.yt-dlp}/bin/yt-dlp --add-metadata --audio-format mp3 --audio-quality 0 -xic"; # Download with audio
}; };

View File

@@ -187,16 +187,19 @@ in
after = [ "network.target" ]; after = [ "network.target" ];
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
restartIfChanged = true; restartIfChanged = true;
path = [ pkgs.alacritty.terminfo ]; path = [ pkgs.alacritty.terminfo pkgs.screen ];
environment.WEECHAT_HOME = weechatHome; environment = {
WEECHAT_HOME = weechatHome;
};
# preStart = "${pkgs.coreutils}/bin/rm $WEECHAT_HOME/*.conf"; # preStart = "${pkgs.coreutils}/bin/rm $WEECHAT_HOME/*.conf";
script = "${tmux} -2 new-session -d -s IM ${weechat}/bin/weechat"; script = "${pkgs.screen}/bin/screen -S weechat -d -m ${weechat}/bin/weechat";
preStop = "${tmux} kill-session -t IM"; preStop = "${pkgs.screen}/bin/screen -S weechat -X quit";
serviceConfig = { serviceConfig = {
User = "weechat"; User = "weechat";
Group = "weechat"; Group = "weechat";
RemainAfterExit = true; RemainAfterExit = true;
Type = "oneshot"; Type = "oneshot";
RuntimeDirectory = "weechat-tmux";
}; };
}; };
@@ -210,7 +213,7 @@ in
group = "weechat"; group = "weechat";
home = "/var/lib/weechat"; home = "/var/lib/weechat";
isSystemUser = true; isSystemUser = true;
packages = [ pkgs.tmux ]; packages = [ pkgs.screen ];
}; };
age.secrets.weechat-sec = { age.secrets.weechat-sec = {