As the title says, I want to—from my
configuration.nix—create a directory, then setgid on it so that any files created within take the group’s ownership. How can I do this?
I currently have the following to create the directory, though I don’t know if it’s the best way to do so and can’t figure out how to then setgid.
systemd.tmpfiles.rules = [ "d dir/path 770 user group" ];