!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

886 Members
177 Servers

Load older messages


SenderMessageTime
2 Oct 2021
@balsoft:balsoft.rubalsoftThanks!17:31:03
@balsoft:balsoft.rubalsoft(I am kind of ashamed right now because now I clearly remember fiddling with string interpolation vs. toString and figuring out the difference...)17:31:36
@tomberek:matrix.orgtomberekIt does come up often. Especially with flakes for some reason (maybe just more people? or more interesting uses being experimented with?)17:31:53
@balsoft:balsoft.rubalsoftPerhaps it should be documented more prominently?17:41:51
3 Oct 2021
@cdepillabout:matrix.orgcdepillabout joined the room.12:54:19
@chanley:matrix.orgCharlie Hanley joined the room.14:55:04
@andrew:mtx.rew.laandrew joined the room.19:59:40
4 Oct 2021
@j-k:matrix.orgj-k set a profile picture.15:07:38
@cafkafk:matrix.orgcafkafk joined the room.19:10:53
@edrex:matrix.orgedrex

i'm trying unsuccessfully to upgrade my nixUnstable to get the fix for https://github.com/nix-community/nix-direnv/issues/113
I installed it with nix-env.

❯ nix upgrade-nix => error: directory '/home/eric/.nix-profile/bin' does not appear to be part of a Nix profile
~ ❯ nix-env -iA nixpkgs.nixUnstable => error: profile '/nix/var/nix/profiles/per-user/eric/profile' is incompatible with 'nix-env'; please use 'nix profile' instead
21:34:01
@edrex:matrix.orgedrexwhat should I be doing here?21:34:16
@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

Show newer messages


Back to Room ListRoom Version: 6