diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-12-12 00:24:23 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-12-20 04:12:27 +0100 |
commit | ab8f306d7c2c49b8116e1af7b355ed2384617ed9 (patch) | |
tree | d1061ec0436fd096de2332a892eb984c63cb125e /modules/private/websites/piedsjaloux/integration.nix | |
parent | 4227853a03923e04daf3dd511a4b5a1ab5d527e7 (diff) | |
download | Nix-ab8f306d7c2c49b8116e1af7b355ed2384617ed9.tar.gz Nix-ab8f306d7c2c49b8116e1af7b355ed2384617ed9.tar.zst Nix-ab8f306d7c2c49b8116e1af7b355ed2384617ed9.zip |
Add specification for the private config file as a module.
Diffstat (limited to 'modules/private/websites/piedsjaloux/integration.nix')
-rw-r--r-- | modules/private/websites/piedsjaloux/integration.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/private/websites/piedsjaloux/integration.nix b/modules/private/websites/piedsjaloux/integration.nix index 8d7cf3a..5568c60 100644 --- a/modules/private/websites/piedsjaloux/integration.nix +++ b/modules/private/websites/piedsjaloux/integration.nix | |||
@@ -1,6 +1,6 @@ | |||
1 | { lib, pkgs, config, myconfig, ... }: | 1 | { lib, pkgs, config, ... }: |
2 | let | 2 | let |
3 | secrets = myconfig.env.websites.piedsjaloux.integration; | 3 | secrets = config.myEnv.websites.piedsjaloux.integration; |
4 | app = pkgs.webapps.piedsjaloux.override { environment = secrets.environment; }; | 4 | app = pkgs.webapps.piedsjaloux.override { environment = secrets.environment; }; |
5 | cfg = config.myServices.websites.piedsjaloux.integration; | 5 | cfg = config.myServices.websites.piedsjaloux.integration; |
6 | pcfg = config.services.phpApplication; | 6 | pcfg = config.services.phpApplication; |
@@ -49,7 +49,7 @@ in { | |||
49 | parameters: | 49 | parameters: |
50 | database_host: ${secrets.mysql.host} | 50 | database_host: ${secrets.mysql.host} |
51 | database_port: ${secrets.mysql.port} | 51 | database_port: ${secrets.mysql.port} |
52 | database_name: ${secrets.mysql.name} | 52 | database_name: ${secrets.mysql.database} |
53 | database_user: ${secrets.mysql.user} | 53 | database_user: ${secrets.mysql.user} |
54 | database_password: ${secrets.mysql.password} | 54 | database_password: ${secrets.mysql.password} |
55 | database_server_version: ${pkgs.mariadb.mysqlVersion} | 55 | database_server_version: ${pkgs.mariadb.mysqlVersion} |