diff options
| -rw-r--r-- | custom/simp_le.nix | 12 | ||||
| -rw-r--r-- | ymir.nix | 2 |
2 files changed, 14 insertions, 0 deletions
diff --git a/custom/simp_le.nix b/custom/simp_le.nix new file mode 100644 index 00000000..eb5a448a --- /dev/null +++ b/custom/simp_le.nix | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | { domains ? [] | ||
| 2 | , simp_le | ||
| 3 | , lib | ||
| 4 | , stdenv | ||
| 5 | }: | ||
| 6 | |||
| 7 | let | ||
| 8 | getcert = domain: '' | ||
| 9 | echo ${domain} >> /tmp/domains.test | ||
| 10 | ''; | ||
| 11 | all = "#!${stdenv}/bin/bash\n\n" + lib.concatMapStringsSep "\n" getcert domains | ||
| 12 | in builtins.toFile "certs.sh" all | ||
| @@ -130,6 +130,8 @@ in rec { | |||
| 130 | enable = true; | 130 | enable = true; |
| 131 | systab = '' | 131 | systab = '' |
| 132 | %weekly * * nix-collect-garbage --delete-older-than '7d' | 132 | %weekly * * nix-collect-garbage --delete-older-than '7d' |
| 133 | |||
| 134 | %monthly * * * ${pkgs.callPackage ./custom/simp_le.nix { domains = ["dirty-haskell.org", "www.dirty-haskell.org", "git.yggdrasil.li", "git.dirty-haskell.org", "git.141.li"]; } } | ||
| 133 | ''; | 135 | ''; |
| 134 | }; | 136 | }; |
| 135 | 137 | ||
