nakato / nixos-sbc

Nix Flake to make managing Single Board Computers easy and repeatable.
MIT License
26 stars 7 forks source link

sbcLibPath causing infinite recursion when used out-of-tree #7

Closed nakato closed 5 months ago

nakato commented 5 months ago

sbcLibPath is causing infinite recursion when used outside of this repository.

          hostA = nixosSystem {¬
            system = "aarch64-linux";¬
            modules = [¬
              nixos-sbc.nixosModules.default¬
              nixos-sbc.nixosModules.boards.bananapi.bpir3¬
              ({config, sbcLibPath, ...}: {
                imports = [
                  (import (sbcLibPath + "/devices/rtc/ds3231/create.nix") {
                     i2cConfig = config.sbc.board.i2c.devices.i2c0;
                   })
                ];
              })
            ];¬
          };¬
nakato commented 5 months ago

I'm going to go with, if it hurts stop doing it, and expose the create.nix bits in the flake. cfb3e99bc9270c3d0a997532725f6aa7e9445190