[Nix-dev] Add /var/setuid-wrappers to $PATH for systemd service

Luca Bruno lethalman88 at gmail.com
Mon Sep 15 20:23:27 CEST 2014


Try  systemd.services.jenkins.path = [ "/var/setuid-wrappers" ];

On Mon, Sep 15, 2014 at 7:44 PM, Bjørn Forsman <bjorn.forsman at gmail.com>
wrote:

> Hi all,
>
> How does one put /var/setuid-wrappers first in $PATH for a systemd service?
>
> The option systemd.services.<name>.path adds /bin and /sbin to the
> given paths, so it cannot be used.
>
> Another possibility could be using
> systemd.services.<name>.environment.PATH. But I failed to make it
> work:
>
>   1. systemd.services.jenkins.environment.PATH = "/var/setuid-wrappers";
>   2. systemd.services.jenkins.environment = pkgs.lib.mkForce { PATH =
> "/var/setuid-wrappers"; };
>
> 1) is completely ignored (nixos module wins over configuration.nix)
> and 2) sort-of works...but now I have to rebuild the full PATH
> manually (not a good idea!)
>
> What I really want is for the value from configuration.nix to be
> merged (preferrably in front) of the value(s) from nixos modules.
>
> Any suggestions?
>
> Best regards,
> Bjørn Forsman
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>



-- 
www.debian.org - The Universal Operating System
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20140915/f463d371/attachment.html 


More information about the nix-dev mailing list