From 9eeb1794db6df16b0b9c03ec3f11071ede98f30a Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Tue, 18 Jun 2024 11:20:03 +0200 Subject: [PATCH] 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. --- systems/hikari3/web-development/default.nix | 26 +++++++++++++++------ 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/systems/hikari3/web-development/default.nix b/systems/hikari3/web-development/default.nix index 66595c2..7c1b9f8 100644 --- a/systems/hikari3/web-development/default.nix +++ b/systems/hikari3/web-development/default.nix @@ -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" + ]; + + }; }; }