From 9e64e2f6c314cbb5deacdf94091134b7e7db1485 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Na=C3=AFm=20Favier?= Date: Thu, 8 Sep 2022 10:45:01 +0200 Subject: [PATCH] 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. --- flake-info/src/commands/flake_info.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/flake-info/src/commands/flake_info.nix b/flake-info/src/commands/flake_info.nix index 42f3729..ec5db01 100644 --- a/flake-info/src/commands/flake_info.nix +++ b/flake-info/src/commands/flake_info.nix @@ -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: