Hello,
I just performed a fresh install of NixOS (after I foolishly tried out ChromeOS w. Brunch on my main machine), but for some reason, Nix can’t recognise $HOME/.config/nix/registry.json
even though it exists. Please help.
Thanks!
EDIT: For example, when I run nix flake show nixpkgs
, it outputs error: getting status of /etc/nix/registry.json: Permission denied
, when the expected is that it uses the one in ~/.config/nix
. The result of nix registry list
is the same error above. It is fine when I run nix flake show github:NixOS/nixpkgs
.
My registry.json
is here:
{
"flakes": [
{
"exact": true,
"from": {
"id": "blender-bin",
"type": "indirect"
},
"to": {
"lastModified": 1687970107,
"narHash": "sha256-vtebyFAdMjrGEcO4KheYH1rMqYRwjcZDb9MiC/y+i5k=",
"path": "/nix/store/85kbrvpcv5gpsg5l2rf950zx4skq918r-source/blender",
"rev": "b78d5c9dc93e738b3cccc5d31bd318b25dd91eea",
"type": "path"
}
},
{
"exact": true,
"from": {
"id": "home-manager",
"type": "indirect"
},
"to": {
"lastModified": 1688302761,
"narHash": "sha256-YIYKeX3YfoAIg9DTe6cl1ga87rDCNDZugdGuqsvEN30=",
"path": "/nix/store/7idq9aj5jya6ffqvwb7y1gz1ij1zr2ga-source",
"rev": "c85d9137db45a1c9c161f4718b13cc3bd4cbd173",
"type": "path"
}
},
{
"exact": true,
"from": {
"id": "impermanence",
"type": "indirect"
},
"to": {
"lastModified": 1684264534,
"narHash": "sha256-K0zr+ry3FwIo3rN2U/VWAkCJSgBslBisvfRIPwMbuCQ=",
"path": "/nix/store/rg2s92f3y9qd9fhqvdl715zkj1i7dx1s-source",
"rev": "89253fb1518063556edd5e54509c30ac3089d5e6",
"type": "path"
}
},
{
"exact": true,
"from": {
"id": "nixos-hardware",
"type": "indirect"
},
"to": {
"lastModified": 1686838567,
"narHash": "sha256-aqKCUD126dRlVSKV6vWuDCitfjFrZlkwNuvj5LtjRRU=",
"path": "/nix/store/mf3nazm479fkbh9n3v7n73yrcvr8avi6-source",
"rev": "429f232fe1dc398c5afea19a51aad6931ee0fb89",
"type": "path"
}
},
{
"exact": true,
"from": {
"id": "nixpkgs",
"type": "indirect"
},
"to": {
"lastModified": 1688231357,
"narHash": "sha256-ZOn16X5jZ6X5ror58gOJAxPfFLAQhZJ6nOUeS4tfFwo=",
"path": "/nix/store/aw6kmwd8a02n2c1wysrfk2q31brlmqdz-source",
"rev": "645ff62e09d294a30de823cb568e9c6d68e92606",
"type": "path"
}
},
{
"exact": true,
"from": {
"id": "nixpkgs-unstable",
"type": "indirect"
},
"to": {
"lastModified": 1688231357,
"narHash": "sha256-ZOn16X5jZ6X5ror58gOJAxPfFLAQhZJ6nOUeS4tfFwo=",
"path": "/nix/store/aw6kmwd8a02n2c1wysrfk2q31brlmqdz-source",
"rev": "645ff62e09d294a30de823cb568e9c6d68e92606",
"type": "path"
}
},
{
"exact": true,
"from": {
"id": "nixvim",
"type": "indirect"
},
"to": {
"lastModified": 1688297518,
"narHash": "sha256-27zsI/9OQkjkcz6/iXabraQNzJ8o4Z0G5MLv64zxZrc=",
"path": "/nix/store/gdavfvhw7wd2wzyz8ch4bl6k219h9z64-source",
"rev": "17ef1ed51face4aeb0663a49796de0088b0a61a6",
"type": "path"
}
},
{
"exact": true,
"from": {
"id": "self",
"type": "indirect"
},
"to": {
"lastModified": 1688546032,
"narHash": "sha256-JK4PVLaKQ+s1HRJO/c1OPYPs7cP18MR3hidLWmDNtBc=",
"path": "/nix/store/jwngygpvmqiaraw09flg7j2jnc3c9323-source",
"type": "path"
}
}
],
"version": 2
}