| 26 Jun 2023 |
CRTified | In reply to @emilazy:matrix.org also, it's not necessarily that much of a problem to have different nixpkgs versions if you are consuming flakes through an overlay or nixos module, since in that case they will use your "main" nixpkgs anyway That might be important to be stressed a bit more. You made me just aware of that, and the consequence (for me) would be that providing overlays is better than providing packages, at least if there is no CI updating the flake.lock | 09:06:07 |
emily | on the other hand, providing packages is important too, for CLI usability :/ | 09:06:41 |
emily | and when packages.* are based on overlays it results in more nixpkgs imports for people like me who try to keep to 0 overlays... so really you have to provide both. it's an awkward situation | 09:07:07 |
CRTified | Yeah. I'd probably go with "put the mkDerivation call In a let binding, reuse that in an overlay and package" | 09:07:30 |
emily | the flakes docs do say "btw don't care about nixpkgs duplication because everyone uses overlays" but uh, i would not say that that statement accurately describes existing practice | 09:07:47 |
emily | (and in fact I think it was written before many were using flakes at all so it was really a prescription written as a descriptive statement...) | 09:08:03 |
emily | this is certainly one of the awkward parts of the existing flakes design, imo | 09:08:21 |
CRTified | For one-time use, having an old nixpkgs dependency is likely fine, while using it in a config makes overlays more useful | 09:08:26 |
CRTified | In reply to @emilazy:matrix.org the flakes docs do say "btw don't care about nixpkgs duplication because everyone uses overlays" but uh, i would not say that that statement accurately describes existing practice Yeah, I think I'm using modules and packages more than overlays, at least from flake inputs | 09:09:34 |
| * emily 's config uses 0 overlays in favour of packages outputs and tries to only evaluate nixpkgs once, but it's a bit of a pain sometimes. and of course sometimes you do actually need to override a dependency | 09:10:41 |
emily | but i did, even in the pre-flakes days, sort of dislike using an overlay just to add leaf packages | 09:10:59 |
emily | feels less structured | 09:11:18 |
| @adham-omran:matrix.org joined the room. | 10:20:36 |
@adham-omran:matrix.org | Hey all I'm trying to rebuild my system after a flake update on the stable channel and I'm getting
error: Invalid package attribute path 'qt6Packages qt6ct'
Google was no help, any ideas what this means?
| 10:21:09 |
dariof4 | In reply to @adham-omran:matrix.org
Hey all I'm trying to rebuild my system after a flake update on the stable channel and I'm getting
error: Invalid package attribute path 'qt6Packages qt6ct'
Google was no help, any ideas what this means?
are you using home manager? | 11:49:50 |
@adham-omran:matrix.org | In reply to @dariof4:matrix.org are you using home manager? Yes | 11:50:31 |
dariof4 | In reply to @adham-omran:matrix.org Yes might be a mismatch between home-manager and your nixpkgs | 11:50:57 |
dariof4 | e.g. you're using unstable home-manager while on nixos-23.05 | 11:51:14 |
dariof4 | * e.g. you're using unstable home-manager while on nixpks/nixos-23.05 | 11:51:27 |
@adham-omran:matrix.org | In reply to @dariof4:matrix.org e.g. you're using unstable home-manager while on nixpks/nixos-23.05 Let me check that | 11:51:30 |
dariof4 | * e.g. you're using unstable home-manager while on nixpkgs/nixos-23.05 | 11:51:38 |
@adham-omran:matrix.org | Checked, both are 23.05 | 11:52:13 |
@adham-omran:matrix.org | What else should I check? | 11:52:35 |
dariof4 | hmm, are you using anything from unstable nixpkgs in your config? | 11:53:19 |
@adham-omran:matrix.org | I grepped for unstable and nothing shows up in my .nix files | 11:53:46 |
@adham-omran:matrix.org | I did used to use unstable but I switched to 23.05 when it was released | 11:54:36 |
dariof4 | hmm, I think the issue is that something is trying to pull in qt6Packages.qt6ct which doesn't exist on 23.05, but exists on unstable | 11:55:46 |
dariof4 | could I check your flake.nix? | 11:55:52 |
@adham-omran:matrix.org | Yes
https://codeberg.org/adham/flake/src/branch/unstable/flake.nix | 11:58:06 |
dariof4 | In reply to @adham-omran:matrix.org Yes
https://codeberg.org/adham/flake/src/branch/unstable/flake.nix you're using home-manager master, you should be using home-manager/release-23.05 if you're using nixpkgs/nixos-23.05 | 11:59:51 |