[<<][nixos][>>][..]
Fri Nov 10 16:37:48 EST 2017

Profiles

nix-env -iA nixos.racket

Seems to create a new profile:

tom@zora:/nix/var/nix/profiles/per-user/tom$ ls -al
total 16
drwxr-xr-x 2 tom  users 4096 Nov 10 16:35 .
drwxrwxrwt 4 root root  4096 Sep 10 16:01 ..
lrwxrwxrwx 1 tom  users   14 Nov 10 16:35 profile -> profile-2-link
lrwxrwxrwx 1 tom  users   60 Nov 10 16:15 profile-1-link -> /nix/store/pp5s9ngnaby5aypcq7dfn4nzd8rbaar2-user-environment
lrwxrwxrwx 1 tom  users   60 Nov 10 16:35 profile-2-link -> /nix/store/dkz38aibd5046r68zmp6rlvkq5qwl5i7-user-environment
tom@zora:/nix/var/nix/profiles/per-user/tom$


nix-env -iA nixos.rustc

Which then created a new profile in the GC roots.

Ok that's neat.


Ok, so how to copy a profile from one host to another?

https://stackoverflow.com/questions/28159181/how-to-copy-a-nix-profile

nix-env -q

tom@zora:~$ nix-env -q
ghc-8.0.2
racket-6.8
rustc-1.15.1


nix-copy-closure --help

Which is very very cool!


For now this is enough.  But there are other ways to do it:

https://nixos.wiki/wiki/FAQ#How_can_I_manage_software_with_nix-env_like_with_configuration.nix.3F



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