From 0def76f96c5024cd0f768386cecd12aaa81cf681 Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Sat, 14 Dec 2024 01:47:44 +0100 Subject: [PATCH] nixos/weechat: Use parameter instead of env variable for state dir The environment variable hides the actual state directory of weechat in systemctl. To make it more obvious, use the equivalent CLI parameter. This doesn't change the current behaviour. Signed-off-by: Felix Singer --- nixos/modules/services/misc/weechat.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nixos/modules/services/misc/weechat.nix b/nixos/modules/services/misc/weechat.nix index 3c786d71321e..3f2740b8ed28 100644 --- a/nixos/modules/services/misc/weechat.nix +++ b/nixos/modules/services/misc/weechat.nix @@ -45,13 +45,12 @@ in }; systemd.services.weechat = { - environment.WEECHAT_HOME = cfg.root; serviceConfig = { User = "weechat"; Group = "weechat"; RemainAfterExit = "yes"; }; - script = "exec ${config.security.wrapperDir}/screen -Dm -S ${cfg.sessionName} ${cfg.binary}"; + script = "exec ${config.security.wrapperDir}/screen -Dm -S ${cfg.sessionName} ${cfg.binary} --dir ${cfg.root}"; wantedBy = [ "multi-user.target" ]; wants = [ "network.target" ]; };