[<<][nixos][>>][..]
Tue Nov 28 21:14:40 EST 2017

Separate profile without changing ~/nix-profile

On panda, single user install.

$ cd ~
$ rm .nix-profile
$ ln -s /nix/var/nix/profiles/default .nix-profile

On nixos:

tom@phoo:~$ ls -al .nix-profile
lrwxrwxrwx 1 tom users 42 Nov 10 20:30 .nix-profile -> /nix/var/nix/profiles/per-user/tom/profile

Looks like there is a bug in "nix-env --switch-profile" -- they do not get created automatically.
https://github.com/NixOS/nix/issues/1396

For panda, I will just copy one.
That doesn't work: they are in the nix store!
Do they get modified there?

Ok on single user they are stored here:

tom@panda:/nix/var/nix/profiles$ ls -al

lrwxrwxrwx 1 tom tom  15 Nov 28 21:28 default -> default-14-link
lrwxrwxrwx 1 tom tom  60 Nov 28 05:04 default-13-link -> /nix/store/8xxvdmc13fvyxvy65k79fj6851aczrk7-user-environment
lrwxrwxrwx 1 tom tom  60 Nov 28 21:28 default-14-link -> /nix/store/sd920gfzskbp1kr9xvikakyw55dsagyf-user-environment

on multi-user the are in:

tom@phoo:/nix/var/nix/profiles/per-user/tom$ ls -al

So for now, stay away from multiple profiles.  Just use nix-shell.  It's cleaner anyway.



[Reply][About]
[<<][nixos][>>][..]