New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does not work well with custom options from flakes and overlays that don't evaluate but are unused #2
Comments
Good question. In the end we just need a I never tried to set the system up with flakes. Looking at
|
You could get the drv with |
|
Prepare to extend local system derivation to inspect flakes for #2
Will be useful for probing slakes in #2
Use an equivalent of the below to extract system derivation: $ nix build --impure /etc/nixos#nixosConfigurations.$(hosname).config.system.build.toplevel --override-input nixpkgs . Partially addresses #2
This fixes sourcing of packages for cases when flake-based system does not define `nixpkgs` channel. I should have done it anyway to isolate from the configuration. Should help #2 a bit.
Converted my system to I wonder if 96cade0 already makes it work for you. Ideally packages from the overlays should be pullable as is as well (they will just fail to be found on repology, it's ok). I'll try to find flake equivalent for I think the below has highest chance to succeed as it always forces
|
With 83cfa55 I can how run Can you give it a try? |
Ah, I now realized you have explicitly broken overlay and it has no way to evaluate at all, not just due to different contexts (flake vs configuration vs nixpkgs). Reproduced failure locally by adding: --- a/overlays/local-packages.nix
+++ b/overlays/local-packages.nix
@@ -32,4 +32,6 @@ final: prev: {
xmms2 = final.callPackage ../xmms2 {};
xmms2_0_8 = final.callPackage ../xmms2/0.8 {};
+
+ broken_package = final.callPackage does/not/exist {};
} Fails as
Looking. We will probably need to get rid of |
Yes, I didn't describe that as clear. I removed the overlays form |
I tried to filter problematic attributes with Let's declare working |
nextcloud26
is an entry in my overlays that does not exist yet. It would be great if such entries could be skipped.nix.deleteChannels
is an option that only exists in a flake input and then is added to the module list in the flake.nix. Can nix-instantiate be made aware of this?The text was updated successfully, but these errors were encountered: