colmena icon indicating copy to clipboard operation
colmena copied to clipboard

`meta.specialArgs` doesn't use the `specialArgs` setting from existing `nixosConfiguration`

Open otavio opened this issue 2 years ago • 4 comments

For example: https://github.com/otavio/nix-config/blob/da99923609a7b1d8054861f2693e519c5356b5a5/lib/default.nix#L15-L17

Inside the modules those aren't exported.

otavio avatar May 08 '22 14:05 otavio

What's the adapter that you are using to convert outputs.nixosConfigurations to outputs.colmena? That probably needs to be changed.

zhaofengli avatar May 09 '22 00:05 zhaofengli

Here: https://github.com/otavio/nix-config/blob/master/lib/default.nix#L6-L24

I had to add:

        specialArgs = {
          inherit inputs;
        };

but it is already done at https://github.com/otavio/nix-config/blob/master/lib/default.nix#L36.

otavio avatar May 09 '22 01:05 otavio

Here you are just extracting the system and modules from the nixosSystem, and Colmena doesn't know what you passed in its specialArgs.

zhaofengli avatar May 09 '22 03:05 zhaofengli

How could I "pass" my previous specialArgs?

otavio avatar May 09 '22 11:05 otavio