summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2016-01-13 04:38:11 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2016-01-13 04:38:11 +0100
commit100bc017f32c9d1f1c04b343c19153ff730a16c5 (patch)
treee2f06c193a6b2aaf1bfd5451e225c3ab7001fe65
parent48406f745f5dacff5a2804ba34f5a24555bde03f (diff)
downloadnixos-100bc017f32c9d1f1c04b343c19153ff730a16c5.tar
nixos-100bc017f32c9d1f1c04b343c19153ff730a16c5.tar.gz
nixos-100bc017f32c9d1f1c04b343c19153ff730a16c5.tar.bz2
nixos-100bc017f32c9d1f1c04b343c19153ff730a16c5.tar.xz
nixos-100bc017f32c9d1f1c04b343c19153ff730a16c5.zip
mockup of simp_le
-rw-r--r--custom/simp_le.nix12
-rw-r--r--ymir.nix2
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
7let
8 getcert = domain: ''
9 echo ${domain} >> /tmp/domains.test
10 '';
11 all = "#!${stdenv}/bin/bash\n\n" + lib.concatMapStringsSep "\n" getcert domains
12in builtins.toFile "certs.sh" all
diff --git a/ymir.nix b/ymir.nix
index d7c862ef..fda8a991 100644
--- a/ymir.nix
+++ b/ymir.nix
@@ -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