You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The main problem is about privacy. /nix/store is world readable. We as a
whole community should think about this problem more, because it's becoming
a bottleneck in the nix expressiveness.
@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.
This issue is being addressed by the pull request #4594, taking a similar approach as #4493 suggested. The ultimate goal is to be able to share as many modules as possible between NixUP and NixOS.
You could e.g. add code conditioned on $USER into the system bashrc or similar approaches, but IMHO it's typically more practical to have such things in per-user dotfiles and have some solution for managing those (e.g. some version control system).
somewhere for a given user. I do not know how to do it in .bashrc, but even if it is possible, i do not think this would be a proper solution. Besides, i am sharing my home folder between NixOS and Ubuntu.
Activity
copumpkin commentedon Sep 6, 2014
Another benefit would be sharing of developer set-ups and such, the way many people put their dotfiles online.
lucabrunox commentedon Sep 6, 2014
For the programs you can simply have a .nix file with a set, and nix-env -i
file.nix.
On Sat, Sep 6, 2014 at 7:27 PM, Daniel Peebles [email protected]
wrote:
www.debian.org - The Universal Operating System
vcunat commentedon Sep 6, 2014
I think you're looking for
~/.nixpkgs/config.nix. Recommended reading: https://nixos.org/wiki/Howto_keep_multiple_packages_up_to_date_at_once.eduarrrd commentedon Sep 6, 2014
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.
lucabrunox commentedon Sep 6, 2014
The main problem is about privacy. /nix/store is world readable. We as a
whole community should think about this problem more, because it's becoming
a bottleneck in the nix expressiveness.
On Sat, Sep 6, 2014 at 10:50 PM, eduarrrd [email protected] wrote:
www.debian.org - The Universal Operating System
vcunat commentedon Sep 6, 2014
@lethalman: /nix/store privacy is being worked on by @nbp.
lucabrunox commentedon Sep 6, 2014
Any pointer about following the progress?
On Sat, Sep 6, 2014 at 11:16 PM, Vladimír Čunát [email protected]
wrote:
www.debian.org - The Universal Operating System
vcunat commentedon Sep 6, 2014
@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.
nbp commentedon Sep 6, 2014
NixOS/nix#329
nbp commentedon Oct 19, 2014
This issue is being addressed by the pull request #4594, taking a similar approach as #4493 suggested. The ultimate goal is to be able to share as many modules as possible between NixUP and NixOS.
domenkozar commentedon Nov 2, 2014
A dupe of #2190
alexeymuranov commentedon Nov 13, 2016
Is it possible to set the value of an attribute like
programs.bash.promptInitper user?vcunat commentedon Nov 13, 2016
You could e.g. add code conditioned on
$USERinto the system bashrc or similar approaches, but IMHO it's typically more practical to have such things in per-user dotfiles and have some solution for managing those (e.g. some version control system).alexeymuranov commentedon Nov 13, 2016
@vcunat, i need to
somewhere for a given user. I do not know how to do it in
.bashrc, but even if it is possible, i do not think this would be a proper solution. Besides, i am sharing my home folder between NixOS and Ubuntu.vcunat commentedon Nov 13, 2016
@alexeymuranov: hmm, one can always do such things, though it may not be pretty:
alexeymuranov commentedon Feb 4, 2017
@vcunat, it turned out that in my case it was enough to set
programs.bash.enableCompletion = true.