New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nixos/config: add user configuration homeMode option #59988
nixos/config: add user configuration homeMode option #59988
Conversation
There was previously no way to set the permissions on home directories created by the createHome option.
Review per https://nixos.org/nixpkgs/manual/#sec-reviewing-contributions and top comment in https://raw.githubusercontent.com/NixOS/nixpkgs/master/.github/PULL_REQUEST_TEMPLATE.md . Reviewed points
Possible improvements
Comments
|
For the author, reviewers, and committers: this PR was scanned and appears to add a use of the deprecated
|
Does anybody actually need this option btw? What would people need this for? |
@infinisil: Well, in my case I needed something like this a few times already, but In summary: So, yes, this option is better than having no way to set permissions for the user's home directory. |
@aszlig You explained that you need it but not why/what for |
@infinisil: Well, it's been a while and I can't remember anymore, but even if I'd need it - there are ways around it by disabling 'createHome` and creating the directory via some other means. |
Thank you for your contributions.
|
I marked this as stale due to inactivity. → More info |
Since Daniel hasn't participated in the PR, I will assume that the interest has died and close the PR. |
Motivation for this change
In the current user configuration, there is no way to configure the directory permissions when a home directory is created with the createHome option.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)