diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-01-25 23:15:08 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-01-25 23:15:08 +0100 |
commit | 01f21083a897b86bf148f1d2bb9c8edca4d3786a (patch) | |
tree | 784f04e9b6ef99a49e572c84e4b7ab40b5eb5fde /nixops/modules/websites/tellesflorian/default.nix | |
parent | bfe3c9c9df0c5112bc8806483292b55ed0f7e02d (diff) | |
download | Nix-01f21083a897b86bf148f1d2bb9c8edca4d3786a.tar.gz Nix-01f21083a897b86bf148f1d2bb9c8edca4d3786a.tar.zst Nix-01f21083a897b86bf148f1d2bb9c8edca4d3786a.zip |
Rename virtual folder to nixops
Fixes https://git.immae.eu/mantisbt/view.php?id=82
Diffstat (limited to 'nixops/modules/websites/tellesflorian/default.nix')
-rw-r--r-- | nixops/modules/websites/tellesflorian/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/nixops/modules/websites/tellesflorian/default.nix b/nixops/modules/websites/tellesflorian/default.nix new file mode 100644 index 0000000..f347169 --- /dev/null +++ b/nixops/modules/websites/tellesflorian/default.nix | |||
@@ -0,0 +1,33 @@ | |||
1 | { lib, pkgs, config, myconfig, mylibs, ... }: | ||
2 | let | ||
3 | adminer = pkgs.callPackage ../commons/adminer.nix {}; | ||
4 | |||
5 | tellesflorian = pkgs.callPackage ./tellesflorian.nix { inherit (mylibs) fetchedGitPrivate; }; | ||
6 | tellesflorian_dev = tellesflorian { | ||
7 | config = myconfig.env.websites.tellesflorian.integration; | ||
8 | }; | ||
9 | |||
10 | cfg = config.services.myWebsites.TellesFlorian; | ||
11 | in { | ||
12 | options.services.myWebsites.TellesFlorian = { | ||
13 | integration = { | ||
14 | enable = lib.mkEnableOption "enable Florian Telles's website in integration"; | ||
15 | }; | ||
16 | }; | ||
17 | |||
18 | config = lib.mkIf cfg.integration.enable { | ||
19 | security.acme.certs."eldiron".extraDomains."app.tellesflorian.com" = null; | ||
20 | services.myPhpfpm.poolConfigs.tellesflorian_dev = tellesflorian_dev.phpFpm.pool; | ||
21 | system.activationScripts.tellesflorian_dev = tellesflorian_dev.activationScript; | ||
22 | services.myWebsites.integration.modules = adminer.apache.modules ++ tellesflorian_dev.apache.modules; | ||
23 | services.myWebsites.integration.vhostConfs.tellesflorian = { | ||
24 | certName = "eldiron"; | ||
25 | hosts = ["app.tellesflorian.com" ]; | ||
26 | root = tellesflorian_dev.webRoot; | ||
27 | extraConfig = [ | ||
28 | tellesflorian_dev.apache.vhostConf | ||
29 | adminer.apache.vhostConf | ||
30 | ]; | ||
31 | }; | ||
32 | }; | ||
33 | } | ||