Compare commits
5 Commits
89050016d3
...
12d878dde4
Author | SHA1 | Date |
---|---|---|
Felix Albrigtsen | 12d878dde4 | |
Felix Albrigtsen | 575ee38243 | |
Oystein Kristoffer Tveit | a2afa5862f | |
Oystein Kristoffer Tveit | 5f6900af28 | |
Felix Albrigtsen | 511e86c6c2 |
|
@ -145,17 +145,15 @@ in
|
||||||
# the toplevel configuration file.
|
# the toplevel configuration file.
|
||||||
# NOTE: Nvm, don't this this was the problem after all?
|
# NOTE: Nvm, don't this this was the problem after all?
|
||||||
finalPackage = cfg.package.overrideAttrs (_: _: {
|
finalPackage = cfg.package.overrideAttrs (_: _: {
|
||||||
postInstall = let
|
postInstall = cfg.package.postInstall + ''
|
||||||
f = x: lib.escapeShellArg (format.lib.valueToString x);
|
|
||||||
in cfg.package.postInstall + ''
|
|
||||||
substituteInPlace $out/${cfg.package.passthru.simplesamlphpPath}/config/config.php \
|
substituteInPlace $out/${cfg.package.passthru.simplesamlphpPath}/config/config.php \
|
||||||
--replace '$SAML_COOKIE_SECURE' ${f cfg.settings.SAML.COOKIE_SECURE} \
|
--replace '$SAML_COOKIE_SECURE' '${format.lib.valueToString cfg.settings.SAML.COOKIE_SECURE}' \
|
||||||
--replace '$SAML_COOKIE_SALT' ${f cfg.settings.SAML.COOKIE_SALT} \
|
--replace '$SAML_COOKIE_SALT' '${format.lib.valueToString cfg.settings.SAML.COOKIE_SALT}' \
|
||||||
--replace '$SAML_ADMIN_PASSWORD' ${f cfg.settings.SAML.ADMIN_PASSWORD} \
|
--replace '$SAML_ADMIN_PASSWORD' '${format.lib.valueToString cfg.settings.SAML.ADMIN_PASSWORD}' \
|
||||||
--replace '$SAML_ADMIN_NAME' ${f cfg.settings.SAML.ADMIN_NAME} \
|
--replace '$SAML_ADMIN_NAME' '${format.lib.valueToString cfg.settings.SAML.ADMIN_NAME}' \
|
||||||
--replace '$SAML_ADMIN_EMAIL' ${f cfg.settings.SAML.ADMIN_EMAIL} \
|
--replace '$SAML_ADMIN_EMAIL' '${format.lib.valueToString cfg.settings.SAML.ADMIN_EMAIL}' \
|
||||||
--replace '$SAML_TRUSTED_DOMAINS' ${f cfg.settings.SAML.TRUSTED_DOMAINS} \
|
--replace '$SAML_TRUSTED_DOMAINS' '${format.lib.valueToString cfg.settings.SAML.TRUSTED_DOMAINS}' \
|
||||||
--replace '$CACHE_DIRECTORY' ${f cfg.settings.CACHE_DIRECTORY}
|
--replace '$CACHE_DIRECTORY' '${format.lib.valueToString cfg.settings.CACHE_DIRECTORY}'
|
||||||
'';
|
'';
|
||||||
});
|
});
|
||||||
in {
|
in {
|
||||||
|
|
Loading…
Reference in New Issue