From 74b17c62e4fbfcb8cf9962f57afe5fafdf287ca7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Na=C3=AFm=20Favier?= Date: Mon, 29 Aug 2022 16:55:19 +0200 Subject: [PATCH] Ignore `_module` options for flakes 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 42f3729d..ec5db01e 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: