| 4 Oct 2021 |
edrex | nix profile list => 0 - - /nix/store/nxbibr9m3pppjydlylyysja2m1gq6774-nix-2.4pre20210802_47e96bb so nix doesn't know how it got the nix flake | 21:37:29 |
| 5 Oct 2021 |
colemickens 🏳️🌈 | edrex: nix-direnv was patched directly to fix this as I understand it | 08:35:25 |
| Hrafn Blóðbók joined the room. | 09:14:11 |
| Alexandra joined the room. | 13:31:33 |
edrex | I'm seeing it outside direnv, trying to `nix develop`. There's an issue for it but I'm not on my laptop | 16:50:33 |
edrex | https://github.com/NixOS/nixpkgs/issues/138157 | 17:56:48 |
edrex | generally though, how do I update nixUnstable? none of the flakes doc sources I've found address this. | 17:59:25 |
edrex | i've been stuck for several days | 17:59:51 |
balsoft | Nuclear option (since it involves removing the rest of your profile)
nix shell nix
- Remove the profile completely
nix profile install nix
| 18:00:37 |
edrex | so nix is installed in the profile but it's not like other packages in that it can't be managed with nix profile command | 18:08:19 |
edrex | because it was installed with nix-env, i guess. I think i'm missing a lot of context not having worked with channels. | 18:08:50 |
edrex | oh but the sequence you listed looks like it should get it installed as a flake-based package. | 18:10:00 |
edrex | there's a lot of fiddly user-servicable API surface here that you have to be an expert to work with safely.. | 18:11:26 |
edrex | i pinned nixpkgs and unpinning it didn't seem to get it back in the same state.. | 18:12:47 |
balsoft | How did you pin nixpkgs? | 18:19:04 |
edrex | nix registry pin flake:nixpkgs github:NixOS/nixpkgs/staging-next | 18:21:54 |
balsoft | And how did you unpin? | 18:22:05 |
edrex | nix registry remove flake:nixpkgs
nix registry add flake:nixpkgs github:NixOS/nixpkgs/nixpkgs-unstable
it's still labeled "user" while it was "global" before.
| 18:24:16 |
edrex | it seems like pinning should be reversible | 18:26:36 |
balsoft | You shouldn't add anything | 18:27:01 |
balsoft | Just remove it | 18:27:03 |
balsoft | It will resolve from the global registry then | 18:27:10 |
balsoft | Otherwise the entry that you have added to the user registry takes precedence | 18:27:21 |
edrex | after removing it, there's no global entry listed. | 18:28:18 |
edrex | oh, there is | 18:28:31 |
edrex | oops | 18:28:33 |
edrex | sorry | 18:28:42 |
edrex | i missed it the first time | 18:28:51 |
balsoft | No problem | 18:28:55 |
edrex | still the docs could make this clearer | 18:29:32 |