X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=modules%2Fprivate%2Fwebsites%2Fnaturaloutil%2Fproduction.nix;fp=nixops%2Fmodules%2Fwebsites%2Fftp%2Fjerome.nix;h=b6cf06912cce1b5ff4a9dcba02b55ec087d41760;hb=f8026b6e4c869aa108f6361c8ccd50890657994d;hp=d00c42dd7bf26461791893fba4e0788bfb92d234;hpb=4aac110f17f0528d90510eec00c9a8df60bcf04f;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/nixops/modules/websites/ftp/jerome.nix b/modules/private/websites/naturaloutil/production.nix similarity index 88% rename from nixops/modules/websites/ftp/jerome.nix rename to modules/private/websites/naturaloutil/production.nix index d00c42d..b6cf069 100644 --- a/nixops/modules/websites/ftp/jerome.nix +++ b/modules/private/websites/naturaloutil/production.nix @@ -1,17 +1,13 @@ { lib, pkgs, config, myconfig, ... }: let - adminer = pkgs.callPackage ../commons/adminer.nix {}; - cfg = config.services.myWebsites.Jerome; - varDir = "/var/lib/ftp/jerome"; - env = myconfig.env.websites.jerome; + adminer = pkgs.callPackage ../commons/adminer.nix {}; + cfg = config.myServices.websites.naturaloutil.production; + varDir = "/var/lib/ftp/jerome"; + env = myconfig.env.websites.jerome; in { - options.services.myWebsites.Jerome = { - production = { - enable = lib.mkEnableOption "enable Jerome's website"; - }; - }; + options.myServices.websites.naturaloutil.production.enable = lib.mkEnableOption "enable Naturaloutil's website"; - config = lib.mkIf cfg.production.enable { + config = lib.mkIf cfg.enable { services.webstats.sites = [ { name = "naturaloutil.immae.eu"; } ]; security.acme.certs."ftp".extraDomains."naturaloutil.immae.eu" = null;