!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

890 Members
179 Servers

Load older messages


SenderMessageTime
9 Sep 2021
@colemickens:matrix.orgcolemickens 🏳️‍🌈(tbh I'm a bit curious if mic92 might read this and know off the top of his head, but they're not in here I guess)18:09:01
@colemickens:matrix.orgcolemickens 🏳️‍🌈 * (tbh I'm a bit curious if mic92 might read this and know off the top of their head, but they're not in here I guess)18:09:11
@tomberek:matrix.orgtomberekah, direnv is catching the gitpod variant of Nix18:09:17
@tomberek:matrix.orgtomberekhttps://github.com/nix-community/nix-direnv/blob/master/direnvrc#L3218:09:20
@colemickens:matrix.orgcolemickens 🏳️‍🌈Except, /home/gitpod/.nix-profile/bin/nix-shell is the nix-shell18:10:12
@tomberek:matrix.orgtomberekmay need to source .bashrc prior to that call, or add the correct Nix beforehand18:10:16
@colemickens:matrix.orgcolemickens 🏳️‍🌈and ~/.nix-profile/bin/nix is the newer one :P18:10:20
@colemickens:matrix.orgcolemickens 🏳️‍🌈 and I checked the nix profile sourcing is before the direnv/nix-direnv stuff :( 18:10:38
@colemickens:matrix.orgcolemickens 🏳️‍🌈or wait, I guess that is maybe only true after my shell has loaded more stuff18:11:02
@colemickens:matrix.orgcolemickens 🏳️‍🌈I should debug a bit more.18:11:05
@tomberek:matrix.orgtomberekit looks like a bashrc/PATH mixup or ordering issue18:12:05
@colemickens:matrix.orgcolemickens 🏳️‍🌈you're certainly not wrong, the NIX_BIN_PATH is wrongly set there18:13:45
@colemickens:matrix.orgcolemickens 🏳️‍🌈just... not sure why, I swear I source the nix-profile early-enough in bashrc.18:14:07
@colemickens:matrix.orgcolemickens 🏳️‍🌈thanks for the nudge 18:14:12
@tomberek:matrix.orgtomberek perhaps add a echo $PATH, command -v nix and command -v nix-shell just prior to that line in the Dockerfile? 18:15:08
@colemickens:matrix.orgcolemickens 🏳️‍🌈 (like I call nix --version RIGHT BEFORE the direnv stuff in bashrc and it prints 2.4pre...) 18:15:19
@colemickens:matrix.orgcolemickens 🏳️‍🌈Come to think it, I'm running the unstable installer...18:15:46
@colemickens:matrix.orgcolemickens 🏳️‍🌈doesn't that mean the only explanation is that direnv IS directly linking to its nix?18:16:03
@colemickens:matrix.orgcolemickens 🏳️‍🌈 I think I have to set NIX_BIN_PREFIX myself? 18:16:08
@tomberek:matrix.orgtomberekgitpod's bash may have "hash" enabled?18:16:25
@tomberek:matrix.orgtomberek(bypassing PATH for recently used commands)18:17:01
@colemickens:matrix.orgcolemickens 🏳️‍🌈oops: https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/misc/nix-direnv/default.nix18:19:17
@colemickens:matrix.orgcolemickens 🏳️‍🌈now to remember how to manage that with nix-env -iA...18:19:51
@colemickens:matrix.orgcolemickens 🏳️‍🌈 I'm getting close: nix-env -iA --from-expression 'with import <nixpkgs>; nix-direnv.override({ enableFlakes = true; })' 18:26:22
@colemickens:matrix.orgcolemickens 🏳️‍🌈 * I'm getting close: nix-env -iA --from-expression 'with import <nixpkgs>; (pkgs.nix-direnv.override {enableFlakes=true;})' 18:28:32
@colemickens:matrix.orgcolemickens 🏳️‍🌈but that's still not quite it18:28:41
@colemickens:matrix.orgcolemickens 🏳️‍🌈 here we go: nix-env -iA --from-expression 'f: with import <nixpkgs> {}; pkgs.nix-direnv.override {enableFlakes=true;}' 18:32:09
@slby:matrix.orgslby joined the room.19:49:20
10 Sep 2021
@papojari:artemislena.eupapojari changed their profile picture.19:21:05
11 Sep 2021
@edrex:matrix.orgedrex with nix 2.4pre nix profile install .. unfree license .. refusing to evaluate error advises export NIXPKGS_ALLOW_UNFREE=1 or setting allow_nonfree in ~/.config/nixpkgs/config.nix but neither prevent the check. Known issue? 01:07:18

Show newer messages


Back to Room ListRoom Version: 6