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/websites/tools/tools/yourls.nix | |
parent | bd5c5d4e23ebd3863a960976767ed4a83dfd07fe (diff) | |
download | Nix-da30ae4ffdd153a1eb32fb86f9ca9a65aa19e4e2.tar.gz Nix-da30ae4ffdd153a1eb32fb86f9ca9a65aa19e4e2.tar.zst Nix-da30ae4ffdd153a1eb32fb86f9ca9a65aa19e4e2.zip |
Move secrets to flakes
Diffstat (limited to 'modules/private/websites/tools/tools/yourls.nix')
-rw-r--r-- | modules/private/websites/tools/tools/yourls.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/private/websites/tools/tools/yourls.nix b/modules/private/websites/tools/tools/yourls.nix index 77ac0a3..0f977f2 100644 --- a/modules/private/websites/tools/tools/yourls.nix +++ b/modules/private/websites/tools/tools/yourls.nix | |||
@@ -1,4 +1,4 @@ | |||
1 | { env, yourls, yourls-plugins }: | 1 | { env, yourls, yourls-plugins, config }: |
2 | rec { | 2 | rec { |
3 | activationScript = { | 3 | activationScript = { |
4 | deps = [ "httpd" ]; | 4 | deps = [ "httpd" ]; |
@@ -40,7 +40,7 @@ rec { | |||
40 | define( 'LDAPAUTH_USERCACHE_TYPE', 0); | 40 | define( 'LDAPAUTH_USERCACHE_TYPE', 0); |
41 | ''; | 41 | ''; |
42 | }]; | 42 | }]; |
43 | webRoot = (yourls.override { yourls_config = "/var/secrets/webapps/tools-yourls"; }).withPlugins (p: [p.ldap]); | 43 | webRoot = (yourls.override { yourls_config = config.secrets.fullPaths."webapps/tools-yourls"; }).withPlugins (p: [p.ldap]); |
44 | apache = rec { | 44 | apache = rec { |
45 | user = "wwwrun"; | 45 | user = "wwwrun"; |
46 | group = "wwwrun"; | 46 | group = "wwwrun"; |
@@ -70,7 +70,7 @@ rec { | |||
70 | phpFpm = rec { | 70 | phpFpm = rec { |
71 | serviceDeps = [ "mysql.service" "openldap.service" ]; | 71 | serviceDeps = [ "mysql.service" "openldap.service" ]; |
72 | basedir = builtins.concatStringsSep ":" ( | 72 | basedir = builtins.concatStringsSep ":" ( |
73 | [ webRoot "/var/secrets/webapps/tools-yourls" ] | 73 | [ webRoot config.secrets.fullPaths."webapps/tools-yourls" ] |
74 | ++ webRoot.plugins); | 74 | ++ webRoot.plugins); |
75 | pool = { | 75 | pool = { |
76 | "listen.owner" = apache.user; | 76 | "listen.owner" = apache.user; |