[Nix-dev] The .nixpkgs/config.nix file and user configuration

John Ramsden ramsdenj at shaw.ca
Thu May 4 03:55:20 CEST 2017


Thanks, for the information.

Marc Weber mentioned

> 1) you can install system wide (nixos-rebuild ..)
> 2) you can install as user into ~/.nix-profile.nix
>
>    ~/.config.nix is to "customize" user nixpkgs by
>    - setting settings such as allowUnfree
>    - override mplayer to use library X
>    - add your own packages FOO

In that case, if I did list my own packages in ~/.nix-profile.nix, would 
that install only into that user profile?

When I run nixos-rebuild switch does that rebuild the user profiles as well?

I don't like the idea of using nix-env, and I have strayed away from it 
on NixOS, the idea of having all my configuration explicitly written out 
in configuration files is part of what I like about Nix.

---
   John Ramsden


More information about the nix-dev mailing list