Ignore _module
options for flakes (#528)
Having the documentation for `_module.args` in the nixpkgs options is useful, but there's no need to have a copy of it per flake module.
This commit is contained in:
parent
7d1c1046ba
commit
9e64e2f6c3
|
@ -51,8 +51,6 @@ let
|
|||
(
|
||||
{ ... }: {
|
||||
_module.check = false;
|
||||
nixpkgs.system = lib.mkDefault "x86_64-linux";
|
||||
nixpkgs.config.allowBroken = true;
|
||||
}
|
||||
)
|
||||
];
|
||||
|
@ -93,7 +91,7 @@ let
|
|||
flake = modulePath;
|
||||
};
|
||||
in
|
||||
map (cleanUpOption extraAttrs) (lib.filter (x: x.visible && !x.internal) opts);
|
||||
map (cleanUpOption extraAttrs) (lib.filter (x: x.visible && !x.internal && lib.head x.loc != "_module") opts);
|
||||
|
||||
readFlakeOptions = let
|
||||
nixosModulesOpts = builtins.concatLists (lib.mapAttrsToList (moduleName: module:
|
||||
|
|
Loading…
Reference in a new issue