!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

886 Members
177 Servers

Load older messages


SenderMessageTime
5 Oct 2021
@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
@edrex:matrix.orgedrexdoes 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:balsoft.rubalsoft It can be configured with flake-registry 18:31:34
@edrex:matrix.orgedrex oh, it is described in the nix registry doc 18:32:32
@roosemberth:orbstheorem.chRoos nix registry --help :D 18:32:53
@edrex:matrix.orgedrexyes 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:matrix.orgedrexit's like being a writer and finding yourself having to troubleshoot the chemistry of your ink pen.18:34:45
@roosemberth:orbstheorem.chRoosYes, flakes is a high entry point.18:35:36
@balsoft:balsoft.rubalsoft
In reply to @roosemberth:orbstheorem.ch
Yes, flakes is a high entry point.
Eh, compared to nix-env interface...
18:35:49

Show newer messages


Back to Room ListRoom Version: 6