diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-05-11 16:18:33 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-05-11 16:18:33 +0200 |
commit | 313d19ce54460846e177c6041ae8aac362be8ae6 (patch) | |
tree | 8f8e1bbdd942999e5445e5eef5a3c261b94dd0b4 /nixops/modules/websites/piedsjaloux/default.nix | |
parent | b3c0779fd2c9bfce7af4bfcb8aa601795ffca8c0 (diff) | |
download | Nix-313d19ce54460846e177c6041ae8aac362be8ae6.tar.gz Nix-313d19ce54460846e177c6041ae8aac362be8ae6.tar.zst Nix-313d19ce54460846e177c6041ae8aac362be8ae6.zip |
Add piedsjaloux to pkgs
Diffstat (limited to 'nixops/modules/websites/piedsjaloux/default.nix')
-rw-r--r-- | nixops/modules/websites/piedsjaloux/default.nix | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/nixops/modules/websites/piedsjaloux/default.nix b/nixops/modules/websites/piedsjaloux/default.nix index 9f9697d..2a1271b 100644 --- a/nixops/modules/websites/piedsjaloux/default.nix +++ b/nixops/modules/websites/piedsjaloux/default.nix | |||
@@ -1,14 +1,15 @@ | |||
1 | { lib, pkgs, config, myconfig, mylibs, ... }: | 1 | { lib, pkgs, config, myconfig, mylibs, ... }: |
2 | let | 2 | let |
3 | piedsjaloux = pkgs.callPackage ./piedsjaloux.nix { inherit (mylibs) fetchedGitPrivate; }; | 3 | piedsjaloux_dev = pkgs.callPackage ./piedsjaloux.nix { |
4 | piedsjaloux_dev = piedsjaloux { | 4 | inherit (pkgs.private.webapps) piedsjaloux; |
5 | config = myconfig.env.websites.piedsjaloux.integration; | 5 | config = myconfig.env.websites.piedsjaloux.integration; |
6 | }; | 6 | }; |
7 | piedsjaloux_prod = piedsjaloux { | 7 | piedsjaloux_prod = pkgs.callPackage ./piedsjaloux.nix { |
8 | config = myconfig.env.websites.piedsjaloux.production; | 8 | inherit (pkgs.private.webapps) piedsjaloux; |
9 | }; | 9 | config = myconfig.env.websites.piedsjaloux.production; |
10 | }; | ||
10 | 11 | ||
11 | cfg = config.services.myWebsites.PiedsJaloux; | 12 | cfg = config.services.myWebsites.PiedsJaloux; |
12 | in { | 13 | in { |
13 | options.services.myWebsites.PiedsJaloux = { | 14 | options.services.myWebsites.PiedsJaloux = { |
14 | production = { | 15 | production = { |
@@ -37,7 +38,7 @@ in { | |||
37 | system.activationScripts.piedsjaloux_prod = piedsjaloux_prod.activationScript; | 38 | system.activationScripts.piedsjaloux_prod = piedsjaloux_prod.activationScript; |
38 | system.extraSystemBuilderCmds = '' | 39 | system.extraSystemBuilderCmds = '' |
39 | mkdir -p $out/webapps | 40 | mkdir -p $out/webapps |
40 | ln -s ${piedsjaloux_prod.webRoot} $out/webapps/${piedsjaloux_prod.apache.webappName} | 41 | ln -s ${piedsjaloux_prod.app.webRoot} $out/webapps/${piedsjaloux_prod.apache.webappName} |
41 | ''; | 42 | ''; |
42 | services.myWebsites.production.modules = piedsjaloux_prod.apache.modules; | 43 | services.myWebsites.production.modules = piedsjaloux_prod.apache.modules; |
43 | services.myWebsites.production.vhostConfs.piedsjaloux = { | 44 | services.myWebsites.production.vhostConfs.piedsjaloux = { |
@@ -56,7 +57,7 @@ in { | |||
56 | system.activationScripts.piedsjaloux_dev = piedsjaloux_dev.activationScript; | 57 | system.activationScripts.piedsjaloux_dev = piedsjaloux_dev.activationScript; |
57 | system.extraSystemBuilderCmds = '' | 58 | system.extraSystemBuilderCmds = '' |
58 | mkdir -p $out/webapps | 59 | mkdir -p $out/webapps |
59 | ln -s ${piedsjaloux_dev.webRoot} $out/webapps/${piedsjaloux_dev.apache.webappName} | 60 | ln -s ${piedsjaloux_dev.app.webRoot} $out/webapps/${piedsjaloux_dev.apache.webappName} |
60 | ''; | 61 | ''; |
61 | services.myWebsites.integration.modules = piedsjaloux_dev.apache.modules; | 62 | services.myWebsites.integration.modules = piedsjaloux_dev.apache.modules; |
62 | services.myWebsites.integration.vhostConfs.piedsjaloux = { | 63 | services.myWebsites.integration.vhostConfs.piedsjaloux = { |