X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=nixops%2Fmodules%2Fwebsites%2Fchloe%2Fdefault.nix;h=ba72d92d799b4ed0b5deb17e9c66263ebc7c410e;hb=daf64e3f7de98e4267823d14fa34891b27b5f657;hp=a542d70f8e15d5585b5edaf40191527f74857d8b;hpb=9eae2b47b7b315b05a0e010f3003bd875685e260;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/nixops/modules/websites/chloe/default.nix b/nixops/modules/websites/chloe/default.nix index a542d70..ba72d92 100644 --- a/nixops/modules/websites/chloe/default.nix +++ b/nixops/modules/websites/chloe/default.nix @@ -1,14 +1,15 @@ -{ lib, pkgs, config, myconfig, mylibs, ... }: +{ lib, pkgs, config, myconfig, ... }: let - chloe = pkgs.callPackage ./chloe.nix { inherit (mylibs) fetchedGitPrivate; }; - chloe_dev = chloe { - config = myconfig.env.websites.chloe.integration; - }; - chloe_prod = chloe { - config = myconfig.env.websites.chloe.production; - }; + chloe_dev = pkgs.callPackage ./chloe.nix { + inherit (pkgs.webapps) chloe; + config = myconfig.env.websites.chloe.integration; + }; + chloe_prod = pkgs.callPackage ./chloe.nix { + inherit (pkgs.webapps) chloe; + config = myconfig.env.websites.chloe.production; + }; - cfg = config.services.myWebsites.Chloe; + cfg = config.services.myWebsites.Chloe; in { options.services.myWebsites.Chloe = { production = { @@ -39,10 +40,10 @@ in { system.activationScripts.chloe_prod = chloe_prod.activationScript; system.extraSystemBuilderCmds = '' mkdir -p $out/webapps - ln -s ${chloe_prod.webRoot} $out/webapps/${chloe_prod.apache.webappName} + ln -s ${chloe_prod.app.webRoot} $out/webapps/${chloe_prod.apache.webappName} ''; - services.myWebsites.production.modules = chloe_prod.apache.modules; - services.myWebsites.production.vhostConfs.chloe = { + services.websites.production.modules = chloe_prod.apache.modules; + services.websites.production.vhostConfs.chloe = { certName = "chloe"; hosts = ["osteopathe-cc.fr" "www.osteopathe-cc.fr" ]; root = chloe_prod.apache.root; @@ -60,10 +61,10 @@ in { system.activationScripts.chloe_dev = chloe_dev.activationScript; system.extraSystemBuilderCmds = '' mkdir -p $out/webapps - ln -s ${chloe_dev.webRoot} $out/webapps/${chloe_dev.apache.webappName} + ln -s ${chloe_dev.app.webRoot} $out/webapps/${chloe_dev.apache.webappName} ''; - services.myWebsites.integration.modules = chloe_dev.apache.modules; - services.myWebsites.integration.vhostConfs.chloe = { + services.websites.integration.modules = chloe_dev.apache.modules; + services.websites.integration.vhostConfs.chloe = { certName = "eldiron"; hosts = ["chloe.immae.eu" ]; root = chloe_dev.apache.root;