!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

889 Members
179 Servers

Load older messages


SenderMessageTime
9 Sep 2021
@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
@edrex:matrix.orgedrexfound it, https://github.com/NixOS/nixpkgs/issues/11634001:39:04
@stellarhoof:matrix.orgAlejandro Hernandez joined the room.13:23:23
@stellarhoof:matrix.orgAlejandro Hernandez Hey guys. I've got a flake where one of its inputs is a local flake in a subdirectory of the root flake. Is there a way of forcing nix to always re-calculate the narHash of the local flake input? Basically something akin to a content-addressable flake. It'd also be acceptable to run a command manually to update the narHash. 13:28:35
@stellarhoof:matrix.orgAlejandro Hernandez * Hey guys. I've got a flake where one of its inputs is a local flake in a subdirectory of the root flake. Is there a way of forcing nix to always re-calculate the narHash of the local flake input? Basically something akin to a content-addressable flake. It'd also be acceptable to run a command manually to update the narHash in the lock file of the root flake. 13:29:07
@ilkecan:matrix.orgilkecan
In reply to @stellarhoof:matrix.org
Hey guys. I've got a flake where one of its inputs is a local flake in a subdirectory of the root flake. Is there a way of forcing nix to always re-calculate the narHash of the local flake input? Basically something akin to a content-addressable flake. It'd also be acceptable to run a command manually to update the narHash in the lock file of the root flake.
How about nix flake lock --update-input <input-name>? Would that work for you?
14:18:17
@stellarhoof:matrix.orgAlejandro Hernandez ilkecan: That's exactly it. Thank you! 14:42:36
@yusdacra:nixos.devyusdacra changed their profile picture.16:32:18
12 Sep 2021
@emilazy:matrix.orgemily is it possible to get nixFlakes to stop writing to ~/.nix-defexpr/channels entirely? 20:07:47
@emilazy:matrix.orgemilythe useless dotfile annoys me slightly (but I wouldn't be surprised if stuff would break without it)20:08:03

Show newer messages


Back to Room ListRoom Version: 6