X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=modules%2Fprivate%2Fwebsites%2Fnassime%2Fproduction.nix;fp=nixops%2Fmodules%2Fwebsites%2Fftp%2Fnassime.nix;h=a1097784c499be9c7199cd1652025ece0bc05380;hb=f8026b6e4c869aa108f6361c8ccd50890657994d;hp=3c982d3f4cebe217ecbd13e692368ed23afdced1;hpb=4aac110f17f0528d90510eec00c9a8df60bcf04f;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/nixops/modules/websites/ftp/nassime.nix b/modules/private/websites/nassime/production.nix similarity index 71% rename from nixops/modules/websites/ftp/nassime.nix rename to modules/private/websites/nassime/production.nix index 3c982d3..a109778 100644 --- a/nixops/modules/websites/ftp/nassime.nix +++ b/modules/private/websites/nassime/production.nix @@ -1,16 +1,12 @@ { lib, pkgs, config, myconfig, ... }: let - cfg = config.services.myWebsites.Nassime; - varDir = "/var/lib/ftp/nassime"; - env = myconfig.env.websites.nassime; + cfg = config.myServices.websites.nassime.production; + varDir = "/var/lib/ftp/nassime"; + env = myconfig.env.websites.nassime; in { - options.services.myWebsites.Nassime = { - production = { - enable = lib.mkEnableOption "enable Nassime's website"; - }; - }; + options.myServices.websites.nassime.production.enable = lib.mkEnableOption "enable Nassime's website"; - config = lib.mkIf cfg.production.enable { + config = lib.mkIf cfg.enable { services.webstats.sites = [ { name = "nassime.bouya.org"; } ]; security.acme.certs."ftp".extraDomains."nassime.bouya.org" = null;