Skip to content

Invalid channels added to root channels list #264602

@eclairevoyant

Description

@eclairevoyant

Describe the bug

Invalid channels added to root user

$ sudo nix-channel --list
" "
nixos "https://nixos.org/channels/nixos-unstable

Steps To Reproduce

Steps to reproduce the behavior:

  1. Rebuild against nixos-unstable

Expected behavior

Don't add garbage channels

Screenshots

Additional context

Already tried manual cleanup

nix-channel --remove '"'
nix-channel --remove 'nixos'
nix-channel --add https://nixos.org/channels/nixos-unstable

(all as root)

However, these broken channels returned after rebuilding.

Notify maintainers

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.5.9, NixOS, 23.11 (Tapir), 23.11.20231029.0cbe9f6`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.17.1`
 - channels(root): `""`
 - nixpkgs: `/nix/store/z6w242l49pbrdawkz5vdhfxh2mvsj36c-source`

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions