Closed somasis closed 2 years ago
Do you have networking.hostName
set on all hosts/configurations in your nixosConfigurations
flake output?
I'm getting an error when enabling documentation.nixos.includeAllModules
, but different one.
[ahorn:rebuild] building the system configuration...
[ahorn:rebuild] error: infinite recursion encountered
[ahorn:rebuild]
[ahorn:rebuild] at /nix/store/k15pfq5hmrpxyyg9cni3az7a8z11vmaa-source/lib/modules.nix:491:28:
[ahorn:rebuild]
[ahorn:rebuild] 490| builtins.addErrorContext (context name)
[ahorn:rebuild] 491| (args.${name} or config._module.args.${name})
[ahorn:rebuild] | ^
[ahorn:rebuild] 492| ) (lib.functionArgs f);
[ahorn:rebuild] (use '--show-trace' to show detailed location information)
task: Failed to run task "ahorn": task: Failed to run task "ahorn:rebuild": exit status 1
Not sure if it's the same bug, but I'll continue investigating and see how I can fix this.
EDIT: Full trace for reference: https://gist.github.com/pinpox/edb874416067048a044eae1656207cca Still not sure why this happens
Upon further investigation this seems to be caused by a problem in the nixos module for the documentation. I've opened an issue here https://github.com/NixOS/nixpkgs/issues/181009 with more information.
@somasis Could you try setting
documentation.nixos.options.splitBuild = false;
and reporting if the error persists for you?
As of the latest nixpkgs master, it seems it works fine with and without options.splitBuild = false
(sorry for the long delay in response, I was without a computer for some time).
As https://github.com/NixOS/nixpkgs/issues/181009#event-7145583416 is now also fixed/merged, I'll close this issue aswell.
When rebuilding my local machine with
nixos-rebuild
and the lollypops module loaded, if the machine hasdocumentation.nixos.includeAllModules = true
in the configuration, it fails with this error:Disabling it solves the error.
(nice job on being probably the easiest to configure flake-compatible deployment framework I've seen, by the way!)