-
-
Save grahamc/48c9fe406d2b54be450ce8e7c95bc94b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Put the following lines at line 96 of | |
# https://github.com/tumblr/jetpants/blob/master/testing/packages/mysql-container/service.nix#L96: | |
environment.etc."my.cnf".source = let | |
startLine = config.systemd.services.mysql.serviceConfig.ExecStart; | |
cnfArgument = builtins.elemAt (lib.splitString " " startLine) 1; | |
filename = lib.removePrefix "--defaults-extra-file=" cnfArgument; | |
in filename; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment