NixOS: some user-subscribed channels are not shown by `nix-channel --list`, how to remove them (unsubscribe)?
I am confused by the current state of my channel subscription on NixOS. It seems that I have a per-user subscription to nixos-17.03
and 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
However, they are not shown with nix-channel --list
, and I cannot remove them with nix-channel --remove
:
$ nix-channel --list
$ sudo nix-channel --list
nixos https://nixos.org/channels/nixos-18.09
Is something broken on my system, or what could be the explanation? How can I remove those per-user channels?
nixos nix
add a comment |
I am confused by the current state of my channel subscription on NixOS. It seems that I have a per-user subscription to nixos-17.03
and 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
However, they are not shown with nix-channel --list
, and I cannot remove them with nix-channel --remove
:
$ nix-channel --list
$ sudo nix-channel --list
nixos https://nixos.org/channels/nixos-18.09
Is something broken on my system, or what could be the explanation? How can I remove those per-user channels?
nixos nix
add a comment |
I am confused by the current state of my channel subscription on NixOS. It seems that I have a per-user subscription to nixos-17.03
and 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
However, they are not shown with nix-channel --list
, and I cannot remove them with nix-channel --remove
:
$ nix-channel --list
$ sudo nix-channel --list
nixos https://nixos.org/channels/nixos-18.09
Is something broken on my system, or what could be the explanation? How can I remove those per-user channels?
nixos nix
I am confused by the current state of my channel subscription on NixOS. It seems that I have a per-user subscription to nixos-17.03
and 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
However, they are not shown with nix-channel --list
, and I cannot remove them with nix-channel --remove
:
$ nix-channel --list
$ sudo nix-channel --list
nixos https://nixos.org/channels/nixos-18.09
Is something broken on my system, or what could be the explanation? How can I remove those per-user channels?
nixos nix
nixos nix
asked Jan 8 at 16:12
AlexeyAlexey
5101720
5101720
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Guesstimate: have you ran nix-channel --update
since dropping them? (not tested, etc.) You've dropped all channels from your user, according to the output.
I've just tried it, without and withsudo
(by the way, not sure ifsudo
is needed), and also i didnixos-rebuild switch --upgrade
, but they still show up.
– Alexey
Jan 8 at 19:20
With sudo you operate on root's channel list, without it you operate on the user's channel list. It might be bug that removing names doesn't really work. I certainly did replace channel URL while keeping the name and that works but it's something else.
– Vladimír Čunát
2 days ago
1
Could it be related to this open issue about "Channel names with.
or-
"?
– Alexey
2 days ago
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f493269%2fnixos-some-user-subscribed-channels-are-not-shown-by-nix-channel-list-how%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Guesstimate: have you ran nix-channel --update
since dropping them? (not tested, etc.) You've dropped all channels from your user, according to the output.
I've just tried it, without and withsudo
(by the way, not sure ifsudo
is needed), and also i didnixos-rebuild switch --upgrade
, but they still show up.
– Alexey
Jan 8 at 19:20
With sudo you operate on root's channel list, without it you operate on the user's channel list. It might be bug that removing names doesn't really work. I certainly did replace channel URL while keeping the name and that works but it's something else.
– Vladimír Čunát
2 days ago
1
Could it be related to this open issue about "Channel names with.
or-
"?
– Alexey
2 days ago
add a comment |
Guesstimate: have you ran nix-channel --update
since dropping them? (not tested, etc.) You've dropped all channels from your user, according to the output.
I've just tried it, without and withsudo
(by the way, not sure ifsudo
is needed), and also i didnixos-rebuild switch --upgrade
, but they still show up.
– Alexey
Jan 8 at 19:20
With sudo you operate on root's channel list, without it you operate on the user's channel list. It might be bug that removing names doesn't really work. I certainly did replace channel URL while keeping the name and that works but it's something else.
– Vladimír Čunát
2 days ago
1
Could it be related to this open issue about "Channel names with.
or-
"?
– Alexey
2 days ago
add a comment |
Guesstimate: have you ran nix-channel --update
since dropping them? (not tested, etc.) You've dropped all channels from your user, according to the output.
Guesstimate: have you ran nix-channel --update
since dropping them? (not tested, etc.) You've dropped all channels from your user, according to the output.
answered Jan 8 at 18:23
Vladimír ČunátVladimír Čunát
66135
66135
I've just tried it, without and withsudo
(by the way, not sure ifsudo
is needed), and also i didnixos-rebuild switch --upgrade
, but they still show up.
– Alexey
Jan 8 at 19:20
With sudo you operate on root's channel list, without it you operate on the user's channel list. It might be bug that removing names doesn't really work. I certainly did replace channel URL while keeping the name and that works but it's something else.
– Vladimír Čunát
2 days ago
1
Could it be related to this open issue about "Channel names with.
or-
"?
– Alexey
2 days ago
add a comment |
I've just tried it, without and withsudo
(by the way, not sure ifsudo
is needed), and also i didnixos-rebuild switch --upgrade
, but they still show up.
– Alexey
Jan 8 at 19:20
With sudo you operate on root's channel list, without it you operate on the user's channel list. It might be bug that removing names doesn't really work. I certainly did replace channel URL while keeping the name and that works but it's something else.
– Vladimír Čunát
2 days ago
1
Could it be related to this open issue about "Channel names with.
or-
"?
– Alexey
2 days ago
I've just tried it, without and with
sudo
(by the way, not sure if sudo
is needed), and also i did nixos-rebuild switch --upgrade
, but they still show up.– Alexey
Jan 8 at 19:20
I've just tried it, without and with
sudo
(by the way, not sure if sudo
is needed), and also i did nixos-rebuild switch --upgrade
, but they still show up.– Alexey
Jan 8 at 19:20
With sudo you operate on root's channel list, without it you operate on the user's channel list. It might be bug that removing names doesn't really work. I certainly did replace channel URL while keeping the name and that works but it's something else.
– Vladimír Čunát
2 days ago
With sudo you operate on root's channel list, without it you operate on the user's channel list. It might be bug that removing names doesn't really work. I certainly did replace channel URL while keeping the name and that works but it's something else.
– Vladimír Čunát
2 days ago
1
1
Could it be related to this open issue about "Channel names with
.
or -
"?– Alexey
2 days ago
Could it be related to this open issue about "Channel names with
.
or -
"?– Alexey
2 days ago
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f493269%2fnixos-some-user-subscribed-channels-are-not-shown-by-nix-channel-list-how%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown