我对 NixOS 上频道订阅的当前状态感到困惑。看来我有每个用户订阅nixos-17.03
和nixos-17.09
:
$ nix-shell -p nix-info --run "nix-info -m"
- system: `"x86_64-linux"`
- host os: `Linux 4.19.13, NixOS, 18.09.1853.c2950341d03 (Jellyfish)`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.1.3`
- channels(alexey): `"nixos-17.03-17.03.1949.78e9665b48f, nixos-17.09-17.09.3238.e984f9e48e1"`
- channels(root): `"nixos-18.09.1853.c2950341d03"`
- nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
$ tree /nix/var/nix/profiles/per-user/alexey/channels
/nix/var/nix/profiles/per-user/alexey/channels
├── binary-caches
│ ├── nixos-17.03 -> /nix/store/kzd027j27bifzi82339isf6rzir2g1hq-nixos-17.03-17.03.1949.78e9665b48f/binary-caches/nixos-17.03
│ └── nixos-17.09 -> /nix/store/m7qgsz2wy9rgc7dpzsacybc9rw79pxxh-nixos-17.09-17.09.3238.e984f9e48e1/binary-caches/nixos-17.09
├── manifest.nix -> /nix/store/913gblkfnvb0sz130wm59s82jxwkp3b1-env-manifest.nix
├── nixos-17.03 -> /nix/store/kzd027j27bifzi82339isf6rzir2g1hq-nixos-17.03-17.03.1949.78e9665b48f/nixos-17.03
└── nixos-17.09 -> /nix/store/m7qgsz2wy9rgc7dpzsacybc9rw79pxxh-nixos-17.09-17.09.3238.e984f9e48e1/nixos-17.09
但是,它们没有用 来显示nix-channel --list
,并且我无法用 来删除它们nix-channel --remove
:
$ nix-channel --list
$ sudo nix-channel --list
nixos https://nixos.org/channels/nixos-18.09
我的系统是否有问题,或者可能的解释是什么?如何删除这些每用户频道?
答案1
nix-channel --update
猜测一下:自从丢下它们之后你跑过吗? (未经测试等)根据输出,您已删除用户的所有频道。