Skip to content

Commit

Permalink
Set default for nixpkgsConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
bnavetta authored and blaggacao committed Sep 17, 2023
1 parent a78e6e8 commit 01adf87
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/std/fwlib/flakeModule.nix
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ in
nixpkgsConfig = mkOption {
description = "Nixpkgs configuration applied to `inputs.nixpkgs` (if that input exists).";
type = with lib.types; attrs;
default = {};
example = literalExpression ''
{ allowUnfree = true; }
'';
Expand Down Expand Up @@ -171,9 +172,8 @@ in
inherit inputs;
inherit (config) systems;
# access them explicitly to trigger a module system error if not defined
inherit (cfg.grow) cellsFrom cellBlocks;
}
// lib.optionalAttrs (opt.grow.type.getSubOptions opt.grow.loc).nixpkgsConfig.isDefined {inherit (cfg.grow) nixpkgsConfig;});
inherit (cfg.grow) cellsFrom cellBlocks nixpkgsConfig;
});
picked = mapAttrs (_: v: pick grown v) cfg.pick;
harvested = mapAttrs (_: v: harvest grown v) cfg.harvest;
winnowed = zipAttrsWith (n: v: winnow (head v) grown (head (tail v))) [cfg.winnowIf cfg.winnow];
Expand Down

0 comments on commit 01adf87

Please sign in to comment.