Skip to content

Commit

Permalink
fix: fix the options and extendModules NixOS configuration args
Browse files Browse the repository at this point in the history
  • Loading branch information
Noah765 committed Jul 23, 2024
1 parent 0b5c0b4 commit edc1d18
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/eval-outputs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ with rawInputs.nixpkgs.lib; let

showWarnings = module:
foldl (
module: warning: builtins.trace "[1;31mwarning: ${warning}[0m" module
module: warning: builtins.trace "warning: ${warning}" module
)
module
module.config.warnings;
Expand Down Expand Up @@ -85,13 +85,13 @@ with rawInputs.nixpkgs.lib; let
extendModules = args: withExtraAttrs (config.extendModules args);
};
in
mapAttrs (_: config:
withExtraAttrs (config
// {
mapAttrs (_: configuration:
withExtraAttrs (configuration
// rec {
class = "nixos";
options = config.options.os.type.getSubOptions [];
config = config.config.os;
inherit (evalModules {modules = config.options.os.type.getSubModules;}) extendModules;
options = builtins.removeAttrs (configuration.options.os.type.getSubOptions []) ["_module"];
config = configuration.config.os;
inherit (lib.evalModules {modules = [{inherit options config;}];}) extendModules;
}))
combinedManagerConfigurations;
in
Expand Down

0 comments on commit edc1d18

Please sign in to comment.