| 26 Jun 2023 |
| @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 |
dariof4 | the inputs.nixpkgs.follows just means that home-manager uses the same nixpkgs version, but some options in home-manager master may require packages which are not in nixpkgs/nixos-23.05 which leads to that failure | 12:00:43 |
@adham-omran:matrix.org | Would following the trace lead to know which options they are exactly? | 12:01:36 |
@adham-omran:matrix.org | Your explanation makes sense to me | 12:01:43 |
CRTified | Probably qt.platformTheme: https://github.com/nix-community/home-manager/blob/0ee5ab611dc1fbb5180bd7d88d2aeb7841a4d179/modules/misc/qt.nix#L54 | 12:02:28 |
CRTified | * Probably qt.platformTheme: https://github.com/nix-community/home-manager/blob/master/modules/misc/qt.nix#L54 | 12:02:53 |
dariof4 | In reply to @crtified:crtified.me Probably qt.platformTheme: https://github.com/nix-community/home-manager/blob/master/modules/misc/qt.nix#L54 yep it's this one, and to be more specific I think it fails while evaluating the file since it specifes pkgs.qt6packages.qt6ct, so even if you don't touch the option it fails | 12:04:51 |
@adham-omran:matrix.org | In reply to @dariof4:matrix.org yep it's this one, and to be more specific I think it fails while evaluating the file since it specifes pkgs.qt6packages.qt6ct, so even if you don't touch the option it fails So, in this case what should I do? | 12:05:39 |
dariof4 | In reply to @adham-omran:matrix.org So, in this case what should I do? set your home-manager url to the release-23.05 branch, like so url = "github:nix-community/home-manager/release-23.05"; | 12:06:52 |
@adham-omran:matrix.org | I'll test now, thank you | 12:08:15 |
@adham-omran:matrix.org | okay, internet speed ain't good at work, I'll report back when I'm home, thank you! | 12:13:13 |
dariof4 | np :-) | 12:17:13 |
@adham-omran:matrix.org | It worked! | 13:16:51 |