-
Notifications
You must be signed in to change notification settings - Fork 25
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
infinite recursion with nixos-hardware module #39
Comments
You can try put the nix code into a new file and import the file, see if that works? |
Copying the module and then importing it from there sadly still results in the same error. The only consistent thing I found to do is to remove the boot.loader prefix from the option name :/ Testing a little bit around at least brought me on how to replicate it easily:
I am importing that hardwareProfile in a nixosConfiguration that is using an aarch64-linux bee. But it happens at import time and such is reproducable on a x86_64-linux doing a |
@jkuball Hihi, I'm open to changing the option name if removing the |
Hey @KhashayarDanesh, thanks for reaching out! :) I would say your hardware module is totally fine with extending the boot loader list. I mean, this is exactly what it is doing. My problems with hive seem to be unrelated to your PR. In fact, I did try to build a minimal repro today so I could share it here, but: I can't get the problem to trigger on a simple setup. It has to be something else that I am doing in my configuration, so I will try to find the root cause and come back later, hopefully with more intel. |
Hi!
I ran into an infinite recursion problem while trying to import a (soon-to-be) module from nixos-hardware, this one: NixOS/nixos-hardware#1269
I am not sure whether this is helpful, but I have added the full trace below.
nix flake check --show-trace
I already tried to understand the problem, but I only found out the source of the error. The module extends the nixos
boot.loader
by a new option:If I change this to be something top level, like just
kboot-conf
, everything is fine. Is it illegal to extend original nixos module options, or is it just something that hive does not support?Sadly I couldn't get a minimal example to also crash. But I presume it is reproducable by just adding
github:KhashayarDanesh/nixos-hardware
to the flake inputs and importinginputs.nixos-hardware.nixosModules.hardkernel-odroid-m1
.I'd love to get some help, or at least pointers on what to do. The easy way to fix it would probably be just to ask the PR maintainer to change the option name, but that feels wrong to me.
Thanks!
The text was updated successfully, but these errors were encountered: