Nix Flakes | 903 Members | |
| 185 Servers |
| Sender | Message | Time |
|---|---|---|
| 1 Oct 2021 | ||
any other package, i would nix profile remove N and reinstall | 18:15:51 | |
| (this is single user mode | 18:16:15 | |
In reply to @edrex:matrix.orgIf using flakes, you can add --override-input nixpkgs github:NixOS/nixpkgs/foo, where foo is the target branch (or commit). If not using flakes, you can probably just export NIX_PATH="nixpkgs=/nix/var/nix/profiles/per-user/myuser/channels/mychannel:$NIX_PATH" before running your nix command. | 18:21:16 | |
In reply to @jez:petrichor.me nix shell nixpkgs/nixpkgs-unstable#nixUnstable giveswhich nix => /home/eric/.nix-profile/bin/nix, which isn't what I expect (the version in my profile isn't from nixpkgs-unstable) | 18:27:36 | |
In reply to @roosemberth:orbstheorem.chRoos: i'm not using a flake for this rn. i have home-manager set up with my nixos hosts but not on laptop yet. To override NIX_PATH in that way, i guess I would have to create another channel with the branch set to nixpkgs-unstable? | 18:31:49 | |
| Yes. | 18:32:07 | |
In reply to @edrex:matrix.orgWhere is the nixpkgs/nixpkgs-unstable flake coming from? (You can use nix registry list to list the ones nix can see) | 18:33:01 | |
Unless nixpkgs/foo is some syntax I do not know. | 18:33:11 | |
| for context, I'm trying to install a nix with the workaround for https://github.com/nix-community/nix-direnv/issues/113 so I can do something other than mess around with nix :D | 18:33:16 | |
In reply to @roosemberth:orbstheorem.chi mean, the flake output specifier can have the form nixpkgs/release-20.09#hello | 18:36:35 | |
| TIL :D | 18:37:44 | |
In reply to @roosemberth:orbstheorem.ch* Roos: i'm not using a flake for this rn. i have home-manager set up with my nixos hosts but not on laptop yet. To override note: first sent a few minutes ago, matrix troubles | 18:44:44 | |
In reply to @edrex:matrix.orgI use realpath `which nix` to get the full path to the current nix, then remove its package and use the fullpath to the previous nix to install new nix version | 19:54:16 | |
| 2 Oct 2021 | ||
| 00:16:52 | ||
| The issue with that is that GC might remove the Nix in that small available timeframe. | 10:14:17 | |
| * The issue with that is that GC might remove the Nix in that small timeframe. | 10:14:24 | |
| The best solution is likely installing the new Nix with a higher priority, then uninstalling the old one. | 10:15:04 | |
In reply to @Las:matrix.orgYou have automatic gc running? You could always open a nix shell with a nix version, this way you always have one (which cannot be gc'ed) | 12:06:29 | |
| That is another solution. Lots of people have automatic GC running. | 12:07:06 | |
| I've found a weird issue with Nix not adding a flake source as a runtime dependency. In particular:
When
Fixes the problem, but it's just weird. | 15:04:25 | |
| Does it help to do string interpolation with pkgs.path as you use it? “${pkgs.path}” ? | 17:11:25 | |
In reply to @tomberek:matrix.orgIsn't "${pkgs.path}" exactly the same as toString pkgs.path ? | 17:11:47 | |
| I can try it I guess... | 17:11:53 | |
| Aha, ok, it seems it is different... | 17:13:15 | |
| Interesting | 17:13:16 | |
Yeah it works fine with "${pkgs.path}" | 17:13:25 | |
| This comes up sometimes. Interpolation kicks in a “string with context” which gives the dependency tracking the info. | 17:13:32 | |
Hm, I thought toString gave a string with context too... | 17:13:46 | |
| But yeah, | 17:14:10 | |
| It makes a lot more sense now | 17:14:18 | |