diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-01-29 14:42:04 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-01-29 14:47:07 +0100 |
commit | 740f9843c8397fe2aa0b2da7c790cd68ea1edaba (patch) | |
tree | 4db3f1ffb73684d8496399273b11665a81ec4436 /nixops | |
parent | 53b8fad90ea092a5ef958bd0cec50eeff9068538 (diff) | |
download | Nix-740f9843c8397fe2aa0b2da7c790cd68ea1edaba.tar.gz Nix-740f9843c8397fe2aa0b2da7c790cd68ea1edaba.tar.zst Nix-740f9843c8397fe2aa0b2da7c790cd68ea1edaba.zip |
Restart pure-ftpd after changing certificate
Diffstat (limited to 'nixops')
-rw-r--r-- | nixops/modules/ftp/default.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nixops/modules/ftp/default.nix b/nixops/modules/ftp/default.nix index c717bfd..321e032 100644 --- a/nixops/modules/ftp/default.nix +++ b/nixops/modules/ftp/default.nix | |||
@@ -13,6 +13,9 @@ | |||
13 | config = lib.mkIf config.services.pure-ftpd.enable { | 13 | config = lib.mkIf config.services.pure-ftpd.enable { |
14 | security.acme.certs."ftp" = config.services.myCertificates.certConfig // { | 14 | security.acme.certs."ftp" = config.services.myCertificates.certConfig // { |
15 | domain = "eldiron.immae.eu"; | 15 | domain = "eldiron.immae.eu"; |
16 | postRun = '' | ||
17 | systemctl restart pure-ftpd.service | ||
18 | ''; | ||
16 | }; | 19 | }; |
17 | 20 | ||
18 | nixpkgs.config.packageOverrides = oldpkgs: rec { | 21 | nixpkgs.config.packageOverrides = oldpkgs: rec { |