Which nix channel is signed by default

A few weeks ago, I installed the nix package manager on my computer (macOS 10.12.6 Sierra).

I want to update the mylocal nixpkgs collection to synchronize it with any upstream updates in the channel. I understand that this can be achieved by doing: nix-channel --update. However, when I run this, I get the following output:

unpacking channels... created 0 symlinks in user environment

Suggestion that the expressions have not been updated in the channels that my system subscribes to. If I run nix-channel --list, I do not see any of the listed channels. What channel is my system on? and should I expect it to be listed?

Is it that it nix-channel --updatewill usually make local changes only if I change the channels I subscribe to, or if I subscribe to an unstable channel?

+4
source share
2 answers

OSX may be characterized by the following:

Nix channels are managed per user ( source ). nix-channel --listthe output is empty, because by default you are not subscribed to any channels - only root subscribes to nixpkgs-unstable( source ).

You can run nix-channel --listas root to view his subscriptions. But

:

    user$ nix-channel --list

    user$ sudo su -
    root# nix-channel --list
    nixpkgs https://nixos.org/channels/nixpkgs-unstable
+2

nix-channel --update , , . nix-channel --list. , .

Nix script nixpkgs:

"$nix/bin/nix-channel" --add https://nixos.org/channels/nixpkgs-unstable

nix-channel --list , nix-channel --remove nixpkgs rm ~/.nix-channels.

nix-channel Nix. . nix-build, nix-env , $NIX_PATH. ( apt-get update brew update, nix-channel Nix.)

+1

Source: https://habr.com/ru/post/1690930/


All Articles