friedow / centerpiece

Your trusty omnibox search.
MIT License
174 stars 6 forks source link

nix build error: 'infinite recursion encountered' #127

Open Ziqi-Yang opened 2 months ago

Ziqi-Yang commented 2 months ago

Command: sudo nixos-rebuild switch --show-trace
Here is the error text: https://paste.sr.ht/~meow_king/213fa6661d111fdb8df3f724ed221d81ced8845f


My configuration:

  imports = [
    ./centerpiece_config.nix
  ];

And here is the content of centerpiece_config.nix:

{ inputs, lib, config, pkgs, ...}:
{
  imports = [
    inputs.centerpiece.hmModules."x86_64-linux".default
  ];
  programs.centerpiece = {
    enable = true;
  };
}
a-kenji commented 2 months ago

Thanks for reaching out!

Can you show a little more about how you import the configuration?

Ziqi-Yang commented 2 months ago

Hi, @a-kenji. I just pushed my nixos configuration to the internet (I'm a beginner TBH). Here are the relevant parts:

  1. https://git.sr.ht/~meow_king/nixos-config/tree/8443968aadb88200f16da1a7c3d44de374ecbd8c/item/hosts/default.nix#L30
  2. https://git.sr.ht/~meow_king/nixos-config/tree/8443968aadb88200f16da1a7c3d44de374ecbd8c/item/home/linux/desktop/default.nix#L5
  3. https://git.sr.ht/~meow_king/nixos-config/tree/8443968aadb88200f16da1a7c3d44de374ecbd8c/item/home/linux/desktop/centerpiece_config.nix

If I un-comment the commented parts in third file, then the error occurs.