diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2021-10-13 02:26:54 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2021-10-16 01:39:24 +0200 |
commit | da30ae4ffdd153a1eb32fb86f9ca9a65aa19e4e2 (patch) | |
tree | bd45012713b065829c1991e55d52081a8baef58a /modules/private/system/quatresaisons | |
parent | bd5c5d4e23ebd3863a960976767ed4a83dfd07fe (diff) | |
download | Nix-da30ae4ffdd153a1eb32fb86f9ca9a65aa19e4e2.tar.gz Nix-da30ae4ffdd153a1eb32fb86f9ca9a65aa19e4e2.tar.zst Nix-da30ae4ffdd153a1eb32fb86f9ca9a65aa19e4e2.zip |
Move secrets to flakes
Diffstat (limited to 'modules/private/system/quatresaisons')
-rw-r--r-- | modules/private/system/quatresaisons/databases.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/private/system/quatresaisons/databases.nix b/modules/private/system/quatresaisons/databases.nix index 8748058..68ce274 100644 --- a/modules/private/system/quatresaisons/databases.nix +++ b/modules/private/system/quatresaisons/databases.nix | |||
@@ -2,7 +2,7 @@ | |||
2 | { | 2 | { |
3 | config = let | 3 | config = let |
4 | serverSpecificConfig = config.myEnv.serverSpecific.quatresaisons; | 4 | serverSpecificConfig = config.myEnv.serverSpecific.quatresaisons; |
5 | phpLdapAdmin = pkgs.webapps.phpldapadmin.override { config = "/var/secrets/webapps/tools-ldap"; }; | 5 | phpLdapAdmin = pkgs.webapps.phpldapadmin.override { config = config.secrets.fullPaths."webapps/tools-ldap"; }; |
6 | in { | 6 | in { |
7 | services.postgresql.enable = true; | 7 | services.postgresql.enable = true; |
8 | services.postgresql.package = pkgs.postgresql_12; | 8 | services.postgresql.package = pkgs.postgresql_12; |
@@ -94,7 +94,7 @@ | |||
94 | by anonymous auth | 94 | by anonymous auth |
95 | by * break | 95 | by * break |
96 | ''; | 96 | ''; |
97 | rootpwFile = "${config.secrets.location}/ldap/password"; | 97 | rootpwFile = config.secrets.fullPaths."ldap/password"; |
98 | suffix = "dc=salle-s,dc=org"; | 98 | suffix = "dc=salle-s,dc=org"; |
99 | rootdn = "cn=root,dc=salle-s,dc=org"; | 99 | rootdn = "cn=root,dc=salle-s,dc=org"; |
100 | database = "hdb"; | 100 | database = "hdb"; |
@@ -120,7 +120,7 @@ | |||
120 | group = "wwwrun"; | 120 | group = "wwwrun"; |
121 | settings = | 121 | settings = |
122 | let | 122 | let |
123 | basedir = builtins.concatStringsSep ":" [ phpLdapAdmin "/var/secrets/webapps/tools-ldap" ]; | 123 | basedir = builtins.concatStringsSep ":" [ phpLdapAdmin config.secrets.fullPaths."webapps/tools-ldap" ]; |
124 | in { | 124 | in { |
125 | "listen.owner" = "wwwrun"; | 125 | "listen.owner" = "wwwrun"; |
126 | "listen.group" = "wwwrun"; | 126 | "listen.group" = "wwwrun"; |