Next: Копирование Guix, Previous: Указание дополнительных каналов, Up: Каналы [Contents][Index]
Канал, названный guix
, обозначает, откуда должен скачиваться сам Guix
(его инструменты командной строки и коллекция пакетов). Например,
предположим вы хотите обновиться из вашей собственной копии репозитория Guix
на example.org
, а именно из ветки super-hacks
, тогда можно
написать в ~/.config/guix/channels.scm
следующую спецификацию:
;; Tell 'guix pull' to use my own repo. (list (channel (name 'guix) (url "https://example.org/my-guix.git") (branch "super-hacks")))
From there on, guix pull
will fetch code from the
super-hacks
branch of the repository at example.org
. The
authentication concern is addressed below (see Аутентификация канала).
Note that you can specify a local directory on the url
field above if
the channel that you intend to use resides on a local file system. However,
in this case guix
checks said directory for ownership before any
further processing. This means that if the user is not the directory owner,
but wants to use it as their default, they will then need to set it as a
safe directory in their global git configuration file. Otherwise,
guix
will refuse to even read it. Supposing your system-wide
local directory is at /src/guix.git
, you would then create a git
configuration file at ~/.gitconfig
with the following contents:
[safe] directory = /src/guix.git
This also applies to the root user unless when called with sudo
by
the directory owner.