-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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
A per-user configuration.nix #3990
Comments
Another benefit would be sharing of developer set-ups and such, the way many people put their dotfiles online. |
For the programs you can simply have a .nix file with a set, and nix-env -i On Sat, Sep 6, 2014 at 7:27 PM, Daniel Peebles notifications@github.com
www.debian.org - The Universal Operating System |
I think you're looking for |
Having a per-user configuration.nix would also allow to define services on a per user basis (through your systemd user instance). Also: fonts and env variables. |
The main problem is about privacy. /nix/store is world readable. We as a On Sat, Sep 6, 2014 at 10:50 PM, eduarrrd notifications@github.com wrote:
www.debian.org - The Universal Operating System |
@lethalman: /nix/store privacy is being worked on by @nbp. |
Any pointer about following the progress? On Sat, Sep 6, 2014 at 11:16 PM, Vladimír Čunát notifications@github.com
www.debian.org - The Universal Operating System |
@lethalman: no idea. Perhaps in the sprint-sumup blogpost that is scheduled to be written on monday by @iElectric, or you may better ask Nicholas himself. From the beginning there was the world-readable assumption and giving it up complicates many things. In any case, you can never have real privacy against root. |
|
A dupe of #2190 |
Is it possible to set the value of an attribute like |
You could e.g. add code conditioned on |
@vcunat, i need to source ${pkgs.gitAndTools.gitFull}/share/git/contrib/completion/git-prompt.sh somewhere for a given user. I do not know how to do it in |
@alexeymuranov: hmm, one can always do such things, though it may not be pretty: source bashrc-common
if [ grep -q '^ID=nixos' /etc/os-release ]; then
source bashrc-nixos
# ^ containing e.g. source ~/nix-profile/share/git/contrib/completion/git-prompt.sh
else... |
@vcunat, it turned out that in my case it was enough to set |
If I'm logging into or setting up a new machine, I want reproducible machine configuration, but also reproducible user configuration. My software configuration, programs installed, nix profiles, etc. would all be great to maintain like anything else. The goal being to minimize start-up time when someone gets a new account or machine.
Has this been discussed/worked on?
The text was updated successfully, but these errors were encountered: