Hi all, I’ve spent about 8 hours on this and I can’t get my overlays to work. When I use nix repl I can see that the overlays are not applied - by querying outputs.nixosConfigurations.host1.pkgs.ffmpeg-full.configureFlags - I see "--disable-libfdk-aac", whereas it should be enabled. And the haskell unordered-containers tests still run for i686, which I have found to take at least 24 hours (I have never let it run long enough to complete, and aborted it in frustration after that long).
My overlays do work with my pre-flake-parts config.
If your config is causing haskell to be rebuilt rather than using the pre-built version then a variation of my overlay above should work to skip the tests.
Would be great if someone could diagnose the root cause as to why the unordered-containers tests are hanging.
Also if you have obs-vkcapture installed then that’s why you had this issue. If you rebuild your system with latest master/nixos-unstable-small it should work
I am not expert (still a newbie in NixOS and flake-parts (1 week usage only)), but I think the pkgs overlay defined in perSystem ( that thing in _module.args.pkgs) was not consumed by nixosConfigurations. I cannot see you have any settings in hosts/default.nix to use those overlays.
By the way, I think the overlays should also be defined in flake block in flake-parts (I mean the flake among “system” “flake” “perSystem” “imports” in flake-parts, don’t know how to call it.), since you are mainly doing an outputs.nixosConfiurations, but not outputs.packages. Maybe you can define it the overlay in modules =[ ]; like normal configuration.nix syntax, I did it that way (because I did that before I switch the nixos to flake), but maybe there are other ways to do it.
Below just noob opinions, correct me if I am wrong. I think you mixed up the flake writing for outputs.nixosConfiurations(use “flake” in flake-parts) and flake writing for outputs.packages(use “perSystem” in flake-parts).
And I see you have an overlay in an overlay, I don’t know how it works.
Thank you very much for taking the time to read my post and review my config. After a lot of stumbling in the dark I ended up with something that works, although I would be grateful for any suggestions to improve it.