!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

894 Members
180 Servers

Load older messages


SenderMessageTime
9 Sep 2021
@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
@balsoft:balsoft.rubalsoftHehe20:08:41
@balsoft:balsoft.rubalsoftNo20:08:47
@balsoft:balsoft.rubalsoftThere's no trivial way20:08:52
@balsoft:balsoft.rubalsoftBut20:08:54
@balsoft:balsoft.rubalsoft https://github.com/balsoft/nixos-config/blob/master/profiles/nix/nix.patch 20:09:04
@balsoft:balsoft.rubalsoftThis works20:09:06
@emilazy:matrix.orgemilythat's one option, heh20:10:23
@Las:matrix.orgLas emily: Tip: Don't use your $HOME as your home folder 20:20:42
@Las:matrix.orgLasI have a separate folder with my important stuff, and use $HOME as one big trash can20:21:08
@Las:matrix.orgLasDon't have to care about all the programs putting their useless files there anymore20:21:26
@emilazy:matrix.orgemilythat's quitter talk20:25:39
@emilazy:matrix.orgemilyI spend too much time hacking uncooperative programs to work with XDG directories...20:25:56
@Las:matrix.orgLasIt is quitter talk, but eventually you realize that the XDG model doesn't even work well with Nix20:28:49
@Las:matrix.orgLas If possible, I wrap the commands using writeShellScriptBin to pass the path to the configuration directly. 20:29:05
@Las:matrix.orgLas Otherwise I use systemd.tmpfiles to symlink from the default configuration location to the nix store. 20:29:21

Show newer messages


Back to Room ListRoom Version: 6