mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 14:10:33 +03:00
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 <felixsinger@posteo.net>
This commit is contained in:
parent
fab596794b
commit
0def76f96c
1 changed files with 1 additions and 2 deletions
|
@ -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" ];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue