[Nix-dev] [Fixed?] Re: environment in systemd services

Arnold Krille arnold at arnoldarts.de
Sun Jan 31 11:46:03 CET 2016


On Sun, 31 Jan 2016 01:28:37 +0100 "Guillaume Maudoux (Layus)"
<layus.on at gmail.com> wrote:
> Yep. Most probably SSL_CERT_FILE. Look for that string on thé github
> issues, or in the mailing list archives.

Yep, it actually is the SSL_CERT_FILE, thanks!

This service seems to do what it should (have to wait till tomorrow to
check if my startAt is what I want):

```
  systemd.services.duplyamazon = {
    path = [ pkgs.bash pkgs.duply pkgs.duplicity ]; 
    serviceConfig = {
      User = "root";
      WorkingDirectory = "/root";
    };
    environment =  {
      SSL_CERT_FILE = "/etc/ssl/certs/ca-certificates.crt";
    };
    script = "duply amazon backup";
    startAt = "*-*-* 2:10:00";
  };
```

(I could have found a similar question some days ago about duplicity
where the cert file was the answer too. Oh, if I had read the
mailinglist better…)

- Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 230 bytes
Desc: not available
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160131/bb827a3a/attachment.bin 


More information about the nix-dev mailing list