Something is messed up in my system, but I don’t know what. I do remember adding/deleting a user and adding/removing channels, so maybe it’s related to that? I copied my configuration.nix
to a VM, and the error doesn’t occur.
The issue occurs as user, and not as root. As root, everything works fine.
Any tips or debugging advice appreciated. If I can avoid a re-install that would be great.
nix-info debug output: greghab@nixGreg> nix-info --debug - Pastebin.com
nixos-rebuild switch debug output: [1] greghab@nixGreg> nixos-rebuild switch --show-trace - Pastebin.com
[not working] nix-info:
- (Note: This part looks suspicious:
system: 0, multi-user?: no,
)
greghab@nixGreg> nix-info ~
error: infinite recursion encountered, at undefined position
system: 0, multi-user?: no, version: nix-env (Nix) 2.3.6, channels(greghab): "", channels(root): "nixos-20.03.2176.a84b797b28e", nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos
greghab@nixGreg> sudo nix-info ~
[sudo] password for greghab:
system: "x86_64-linux", multi-user?: yes, version: nix-env (Nix) 2.3.6, channels(greghab): "", channels(root): "nixos-20.03.2176.a84b797b28e", nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos
greghab@nixGreg>
Channels:
[1] greghab@nixGreg> nix-channel --list ~
greghab@nixGreg> sudo nix-channel --list ~
nixos https://nixos.org/channels/nixos-20.03
[working] Fresh VM nix-info:
greghab@nixVM> nix-info ~
system: "x86_64-linux", multi-user?: yes, version: nix-env (Nix) 2.3.6, nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos
greghab@nixVM> sudo nix-info ~
system: "x86_64-linux", multi-user?: yes, version: nix-env (Nix) 2.3.6, nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos
greghab@nixVM>
[working] Fresh VM Channels:
[1] greghab@nixVM> nix-channel --list ~
greghab@nixVM> sudo nix-channel --list ~
nixos https://nixos.org/channels/nixos-20.03