X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=modules%2Fprivate%2Fwebsites%2Fnassime%2Fproduction.nix;h=293519f10b64ca7912d8eadd89eea0b138241463;hb=981fa80354fd6f00f49446777c38f77bd8a65f65;hp=a1097784c499be9c7199cd1652025ece0bc05380;hpb=f8026b6e4c869aa108f6361c8ccd50890657994d;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/modules/private/websites/nassime/production.nix b/modules/private/websites/nassime/production.nix index a109778..293519f 100644 --- a/modules/private/websites/nassime/production.nix +++ b/modules/private/websites/nassime/production.nix @@ -1,17 +1,17 @@ -{ lib, pkgs, config, myconfig, ... }: +{ lib, pkgs, config, ... }: let cfg = config.myServices.websites.nassime.production; varDir = "/var/lib/ftp/nassime"; - env = myconfig.env.websites.nassime; + env = config.myEnv.websites.nassime; in { options.myServices.websites.nassime.production.enable = lib.mkEnableOption "enable Nassime's website"; config = lib.mkIf cfg.enable { services.webstats.sites = [ { name = "nassime.bouya.org"; } ]; - security.acme.certs."ftp".extraDomains."nassime.bouya.org" = null; + security.acme2.certs."ftp".extraDomains."nassime.bouya.org" = null; - services.websites.production.vhostConfs.nassime = { + services.websites.env.production.vhostConfs.nassime = { certName = "nassime"; certMainHost = "nassime.bouya.org"; hosts = ["nassime.bouya.org" ];