diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2016-04-13 12:43:30 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2016-04-13 12:43:30 +0200 |
commit | 6d7d4c3d80d0f1b9aa2e05d4983d14b0aa63ed79 (patch) | |
tree | 04585edcc77f0825730dda8d7a62cfb5202b9484 /ymir.nix | |
parent | d302a7a994e14acd199f3f92aa933ed8496732e9 (diff) | |
download | nixos-6d7d4c3d80d0f1b9aa2e05d4983d14b0aa63ed79.tar nixos-6d7d4c3d80d0f1b9aa2e05d4983d14b0aa63ed79.tar.gz nixos-6d7d4c3d80d0f1b9aa2e05d4983d14b0aa63ed79.tar.bz2 nixos-6d7d4c3d80d0f1b9aa2e05d4983d14b0aa63ed79.tar.xz nixos-6d7d4c3d80d0f1b9aa2e05d4983d14b0aa63ed79.zip |
letsencrypt for all domains
Diffstat (limited to 'ymir.nix')
-rw-r--r-- | ymir.nix | 20 |
1 files changed, 15 insertions, 5 deletions
@@ -9,8 +9,8 @@ let | |||
9 | enabled = true; | 9 | enabled = true; |
10 | domain = name; | 10 | domain = name; |
11 | ssl = { | 11 | ssl = { |
12 | key = "certs/${name}.key"; | 12 | key = "ssl/${name}/key.pem"; |
13 | cert = "certs/${name}.crt"; | 13 | cert = "ssl/${name}/fullchain.pem"; |
14 | }; | 14 | }; |
15 | }; | 15 | }; |
16 | simp_le = pkgs.callPackage ./custom/simp_le.nix {}; | 16 | simp_le = pkgs.callPackage ./custom/simp_le.nix {}; |
@@ -130,13 +130,23 @@ 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 | %monthly * * * ${simp_le "/etc/nginx/ssl/git.yggdrasil.li" "git.yggdrasil.li"} | 133 | %monthly * * * ${simp_le "git.yggdrasil.li"} |
134 | %monthly * * * ${simp_le "/etc/nginx/ssl/dirty-haskell.org" "dirty-haskell.org"} | 134 | %monthly * * * ${simp_le "dirty-haskell.org"} |
135 | %monthly * * * ${simp_le "/etc/nginx/ssl/www.dirty-haskell.org" "www.dirty-haskell.org"} | 135 | %monthly * * * ${simp_le "www.dirty-haskell.org"} |
136 | %monthly * * * ${simp_le "141.li"} | ||
137 | %monthly * * * ${simp_le "xmpp.li"} | ||
138 | %monthly * * * ${simp_le "yggdrasil.li"} | ||
139 | %monthly * * * ${simp_le "praseodym.org"} | ||
136 | %daily * * systemctl reload nginx.service | 140 | %daily * * systemctl reload nginx.service |
137 | ''; | 141 | ''; |
138 | }; | 142 | }; |
139 | 143 | ||
144 | users.groups."ssl" = { | ||
145 | members = [ "prosody" | ||
146 | "nginx" | ||
147 | ]; | ||
148 | }; | ||
149 | |||
140 | services.chrony = { | 150 | services.chrony = { |
141 | enable = true; | 151 | enable = true; |
142 | }; | 152 | }; |