Skip to content

Commit

Permalink
Revert "eval-config: set class"
Browse files Browse the repository at this point in the history
  • Loading branch information
emilazy committed Jul 24, 2023
1 parent 8f0e02c commit a5b0958
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion eval-config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ let
};

eval = lib.evalModules (builtins.removeAttrs args [ "lib" ] // {
class = "darwin";
modules = modules ++ [ argsModule ] ++ baseModules;
specialArgs = { modulesPath = builtins.toString ./modules; } // specialArgs;
});
Expand Down
9 changes: 4 additions & 5 deletions modules/documentation/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ let
regularConfig = config;

argsModule = {
config._module.args = lib.mkForce (regularConfig._module.args // {
config._module.args = regularConfig._module.args // {
modules = [ ];
});
};
};

/* For the purpose of generating docs, evaluate options with each derivation
Expand All @@ -28,9 +28,8 @@ let
inherit (config.system) nixpkgsRevision;
options =
let
scrubbedEval = import ../../eval-config.nix {
inherit lib;
modules = [ argsModule ];
scrubbedEval = evalModules {
modules = baseModules ++ [ argsModule ];
specialArgs = { pkgs = scrubDerivations "pkgs" pkgs; };
};
scrubDerivations = namePrefix: pkgSet: mapAttrs
Expand Down

0 comments on commit a5b0958

Please sign in to comment.