flakelight
flakelight copied to clipboard
`outputs'` is not passed to nixos/home configs as listed in docs
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 = { ... };
}