diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-01-25 23:15:08 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-01-25 23:15:08 +0100 |
commit | 01f21083a897b86bf148f1d2bb9c8edca4d3786a (patch) | |
tree | 784f04e9b6ef99a49e572c84e4b7ab40b5eb5fde /virtual/modules/certificates.nix | |
parent | bfe3c9c9df0c5112bc8806483292b55ed0f7e02d (diff) | |
download | Nix-01f21083a897b86bf148f1d2bb9c8edca4d3786a.tar.gz Nix-01f21083a897b86bf148f1d2bb9c8edca4d3786a.tar.zst Nix-01f21083a897b86bf148f1d2bb9c8edca4d3786a.zip |
Rename virtual folder to nixops
Fixes https://git.immae.eu/mantisbt/view.php?id=82
Diffstat (limited to 'virtual/modules/certificates.nix')
-rw-r--r-- | virtual/modules/certificates.nix | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/virtual/modules/certificates.nix b/virtual/modules/certificates.nix deleted file mode 100644 index 7fae729..0000000 --- a/virtual/modules/certificates.nix +++ /dev/null | |||
@@ -1,26 +0,0 @@ | |||
1 | { lib, pkgs, config, mylibs, ... }: | ||
2 | { | ||
3 | options.services.myCertificates = { | ||
4 | certConfig = lib.mkOption { | ||
5 | default = { | ||
6 | webroot = "/var/lib/acme/acme-challenge"; | ||
7 | email = "ismael@bouya.org"; | ||
8 | postRun = '' | ||
9 | systemctl reload httpdTools.service httpdInte.service httpdProd.service | ||
10 | ''; | ||
11 | plugins = [ "cert.pem" "chain.pem" "fullchain.pem" "full.pem" "key.pem" "account_key.json" ]; | ||
12 | }; | ||
13 | description = "Default configuration for certificates"; | ||
14 | }; | ||
15 | }; | ||
16 | |||
17 | config = { | ||
18 | security.acme.preliminarySelfsigned = true; | ||
19 | |||
20 | security.acme.certs = { | ||
21 | "eldiron" = config.services.myCertificates.certConfig // { | ||
22 | domain = "eldiron.immae.eu"; | ||
23 | }; | ||
24 | }; | ||
25 | }; | ||
26 | } | ||