How to change permission of a folder in etc

Hi all

I am currently struggling with finding a way to change the permissions of a directory in /etc.
I am using greetd and I would like to create a the home directory of the greeter user who launches the binary in /etc/greetd.
In the nix file, I changed the home directory of the user to /etc/greetd/profile with correct permissions.
However the permissions of /etc/greetd are set to 700 and its owner is root, I do not create this directory.
This causes problems when running gsettings as the latter fails with a permission error when trying to set themes settings.
Changing the permission to let the user greeter to list the /etc/greetd directory solves the problem.

How can I change the permission of this directory in my nix file ?

You are searching for NixOS Search and NixOS Search