X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=nixops%2Fmodules%2Fwebsites%2Fftp%2Fnassime.nix;h=9ed8a809bb50be8c1751089b20a18754f9e8bcd3;hb=daf64e3f7de98e4267823d14fa34891b27b5f657;hp=d7ced7e69763b9709eef85884cddb6bdb3034301;hpb=b7ee93fcdee2509cd4c0caec2c5c59ccff5bab2c;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/nixops/modules/websites/ftp/nassime.nix b/nixops/modules/websites/ftp/nassime.nix index d7ced7e..9ed8a80 100644 --- a/nixops/modules/websites/ftp/nassime.nix +++ b/nixops/modules/websites/ftp/nassime.nix @@ -1,4 +1,4 @@ -{ lib, pkgs, config, myconfig, mylibs, ... }: +{ lib, pkgs, config, myconfig, ... }: let cfg = config.services.myWebsites.Nassime; varDir = "/var/lib/ftp/nassime"; @@ -10,22 +10,15 @@ in { }; }; - imports = [ - ../commons/stats.nix - ]; - config = lib.mkIf cfg.production.enable { - services.myWebsites.commons.stats.enable = true; - services.myWebsites.commons.stats.sites = [ - { name = "nassime.bouya.org"; } - ]; + services.webstats.sites = [ { name = "nassime.bouya.org"; } ]; security.acme.certs."ftp".extraDomains."nassime.bouya.org" = null; security.acme.certs."nassime" = config.services.myCertificates.certConfig // { domain = "nassime.bouya.org"; }; - services.myWebsites.production.vhostConfs.nassime = { + services.websites.production.vhostConfs.nassime = { certName = "nassime"; hosts = ["nassime.bouya.org" ]; root = varDir;