flakelight icon indicating copy to clipboard operation
flakelight copied to clipboard

`outputs'` is not passed to nixos/home configs as listed in docs

Open JumpIn-Git opened this issue 7 months ago • 0 comments

I made this flake to test if outputs' is passed to nixos (tried with home-manager too), but x does not have outputs':

{
  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
    flakelight.url = "github:nix-community/flakelight";
  };
  outputs = {flakelight, ...} @ inputs:
    flakelight ./. {
      inherit inputs;
      nixosConfigurations.cinnamon = {
        system = "x86_64-linux";
        modules = [
          (args: {x = args;})
          ({lib, ...}: {options.x = lib.mkOption {type = lib.types.anything;};})
        ];
      };
    };
}
nix-repl> nixosConfigurations.cinnamon.config.x            
{
  _class = "nixos";
  config = «error: The option `passthru' was accessed but has no value define
d. Try setting the option.»;
  hostname = "cinnamon";
  inputs = { ... };
  inputs' = { ... };
  lib = { ... };
  modulesPath = "/nix/store/126fp22lvqmnfv1p290vcpmbf8yab4a5-source/nixos/mod
ules";
  options = { ... };
  specialArgs = { ... };
}

JumpIn-Git avatar May 18 '25 09:05 JumpIn-Git