Allow group to enter mysql data dir

That way my user within the mysql group can tail the query log.
Default is 0700 which would prevent that.
This commit is contained in:
Daniel Siepmann 2024-06-18 11:20:03 +02:00
parent ffc5121bb7
commit 9eeb1794db
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4

View file

@ -139,13 +139,25 @@ in {
};
};
systemd.tmpfiles.rules = [
# TODO: Improve handling of TYPO3 global configuration
# Current issue: The files are copied once.
# Changes are not reflected until reboot?
# I can edit the copied files, but need to keep files in sync.
"C ${config.custom.web-development.rootPath}/own/typo3-configuration - - - - ${config.users.users.daniels.home}/.config/nixpkgs/home/files/typo3-configuration"
];
systemd = {
services = {
mysql.serviceConfig = {
# Allow group to access the folder,
# to allow users within group to tail log.
StateDirectoryMode = lib.mkForce "0710";
};
};
tmpfiles.rules = [
# TODO: Improve handling of TYPO3 global configuration
# Current issue: The files are copied once.
# Changes are not reflected until reboot?
# I can edit the copied files, but need to keep files in sync.
"C ${config.custom.web-development.rootPath}/own/typo3-configuration - - - - ${config.users.users.daniels.home}/.config/nixpkgs/home/files/typo3-configuration"
];
};
};
}