summaryrefslogtreecommitdiff
path: root/custom/simp_le.nix
blob: 83582c24e8a008c334385215b9482c640bb2f416 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ stdenv, simp_le
, eject
}:
dir:
domain:

let
  script = builtins.toFile "cert.sh" ''
    cd $dir
    ${simp_le}/bin/simp_le -d ${domain}:/srv/www/acme/${domain}/ \
      --email "phikeebaogobaegh@141.li" \
      -f account_key.json \
      -f cert.pem \
      -f fullchain.pem \
      -f key.pem
  '';
in
  "${stdenv}/bin/bash ${script} ${dir} ${domain} > ${eject}/bin/logger -p auth.info"