!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

885 Members
176 Servers

Load older messages


SenderMessageTime
4 Oct 2021
@edrex:matrix.orgedrex 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:matrix.orgcolemickens 🏳️‍🌈 edrex: nix-direnv was patched directly to fix this as I understand it 08:35:25
@sudoreboot:matrix.orgHrafn Blóðbók joined the room.09:14:11
@alxanyae:matrix.orgAlexandra joined the room.13:31:33
@edrex:matrix.orgedrexI'm seeing it outside direnv, trying to `nix develop`. There's an issue for it but I'm not on my laptop16:50:33
@edrex:matrix.orgedrexhttps://github.com/NixOS/nixpkgs/issues/13815717:56:48
@edrex:matrix.orgedrexgenerally though, how do I update nixUnstable? none of the flakes doc sources I've found address this.17:59:25
@edrex:matrix.orgedrexi've been stuck for several days17:59:51
@balsoft:balsoft.rubalsoft

Nuclear option (since it involves removing the rest of your profile)

  1. nix shell nix
  2. Remove the profile completely
  3. nix profile install nix
18:00:37
@edrex:matrix.orgedrexso nix is installed in the profile but it's not like other packages in that it can't be managed with nix profile command18:08:19
@edrex:matrix.orgedrexbecause 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:matrix.orgedrexoh but the sequence you listed looks like it should get it installed as a flake-based package.18:10:00
@edrex:matrix.orgedrexthere'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:matrix.orgedrexi pinned nixpkgs and unpinning it didn't seem to get it back in the same state..18:12:47
@balsoft:balsoft.rubalsoftHow did you pin nixpkgs?18:19:04
@edrex:matrix.orgedrex nix registry pin flake:nixpkgs github:NixOS/nixpkgs/staging-next 18:21:54
@balsoft:balsoft.rubalsoftAnd how did you unpin?18:22:05
@edrex:matrix.orgedrex
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:matrix.orgedrexit seems like pinning should be reversible18:26:36
@balsoft:balsoft.rubalsoftYou shouldn't add anything18:27:01
@balsoft:balsoft.rubalsoftJust remove it18:27:03
@balsoft:balsoft.rubalsoftIt will resolve from the global registry then18:27:10
@balsoft:balsoft.rubalsoftOtherwise the entry that you have added to the user registry takes precedence18:27:21
@edrex:matrix.orgedrexafter removing it, there's no global entry listed.18:28:18
@edrex:matrix.orgedrexoh, there is18:28:31
@edrex:matrix.orgedrexoops18:28:33
@edrex:matrix.orgedrexsorry18:28:42
@edrex:matrix.orgedrexi missed it the first time18:28:51
@balsoft:balsoft.rubalsoftNo problem18:28:55
@edrex:matrix.orgedrexstill the docs could make this clearer18:29:32

Show newer messages


Back to Room ListRoom Version: 6