| 5 Oct 2021 |
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 |
edrex | does global mean "baked into nix"? like it's no something you are meant to change on a per-system basis? or is it just a per-system default? | 18:31:16 |
balsoft | It can be configured with flake-registry | 18:31:34 |
edrex | oh, it is described in the nix registry doc | 18:32:32 |
Roos | nix registry --help :D | 18:32:53 |
edrex | yes well it's a lot to take on while trying to troubleshoot odd issues at like 6 different layers while learning a new operating system. | 18:34:07 |
edrex | it's like being a writer and finding yourself having to troubleshoot the chemistry of your ink pen. | 18:34:45 |