Skip to content

Instantly share code, notes, and snippets.

@s1341
Created November 12, 2023 08:57
Show Gist options
  • Save s1341/e1155d1be45772bac7697f63b8c1084b to your computer and use it in GitHub Desktop.
Save s1341/e1155d1be45772bac7697f63b8c1084b to your computer and use it in GitHub Desktop.
❯ sudo nixos-rebuild switch --show-trace
warning: Git tree '/etc/nixos' is dirty
error:
… while calling the 'seq' builtin
at /nix/store/mp4clz8rfv9vwl1n589kmkcp9k36ynkc-source/lib/modules.nix:320:18:
319| options = checked options;
320| config = checked (removeAttrs config [ "_module" ]);
| ^
321| _module = checked (config._module);
… while evaluating a branch condition
at /nix/store/mp4clz8rfv9vwl1n589kmkcp9k36ynkc-source/lib/modules.nix:261:9:
260| checkUnmatched =
261| if config._module.check && config._module.freeformType == null && merged.unmatchedDefns != [] then
| ^
262| let
… in the right operand of the AND (&&) operator
at /nix/store/mp4clz8rfv9vwl1n589kmkcp9k36ynkc-source/lib/modules.nix:261:72:
260| checkUnmatched =
261| if config._module.check && config._module.freeformType == null && merged.unmatchedDefns != [] then
| ^
262| let
… while evaluating the attribute 'unmatchedDefns'
at /nix/store/mp4clz8rfv9vwl1n589kmkcp9k36ynkc-source/lib/modules.nix:686:7:
685| # Transforms unmatchedDefnsByName into a list of definitions
686| unmatchedDefns =
| ^
687| if configs == []
… while calling the 'concatLists' builtin
at /nix/store/mp4clz8rfv9vwl1n589kmkcp9k36ynkc-source/lib/modules.nix:693:11:
692| else
693| concatLists (mapAttrsToList (name: defs:
| ^
694| map (def: def // {
… while calling anonymous lambda
at /nix/store/mp4clz8rfv9vwl1n589kmkcp9k36ynkc-source/lib/attrsets.nix:543:10:
542| attrs:
543| map (name: f name attrs.${name}) (attrNames attrs);
| ^
544|
… from call site
at /nix/store/mp4clz8rfv9vwl1n589kmkcp9k36ynkc-source/lib/attrsets.nix:543:16:
542| attrs:
543| map (name: f name attrs.${name}) (attrNames attrs);
| ^
544|
… while calling anonymous lambda
at /nix/store/mp4clz8rfv9vwl1n589kmkcp9k36ynkc-source/lib/modules.nix:693:46:
692| else
693| concatLists (mapAttrsToList (name: defs:
| ^
694| map (def: def // {
… while calling anonymous lambda
at /nix/store/mp4clz8rfv9vwl1n589kmkcp9k36ynkc-source/lib/modules.nix:679:22:
678| # Propagate all unmatched definitions from nested option sets
679| mapAttrs (n: v: v.unmatchedDefns) resultsByName
| ^
680| # Plus the definitions for the current prefix that don't have a matching option
… while calling anonymous lambda
at /nix/store/mp4clz8rfv9vwl1n589kmkcp9k36ynkc-source/lib/attrsets.nix:543:10:
542| attrs:
543| map (name: f name attrs.${name}) (attrNames attrs);
| ^
544|
… from call site
at /nix/store/mp4clz8rfv9vwl1n589kmkcp9k36ynkc-source/lib/attrsets.nix:543:16:
542| attrs:
543| map (name: f name attrs.${name}) (attrNames attrs);
| ^
544|
… while calling anonymous lambda
at /nix/store/mp4clz8rfv9vwl1n589kmkcp9k36ynkc-source/lib/modules.nix:693:46:
692| else
693| concatLists (mapAttrsToList (name: defs:
| ^
694| map (def: def // {
… while calling anonymous lambda
at /nix/store/mp4clz8rfv9vwl1n589kmkcp9k36ynkc-source/lib/modules.nix:679:22:
678| # Propagate all unmatched definitions from nested option sets
679| mapAttrs (n: v: v.unmatchedDefns) resultsByName
| ^
680| # Plus the definitions for the current prefix that don't have a matching option
… from call site
at /nix/store/mp4clz8rfv9vwl1n589kmkcp9k36ynkc-source/lib/modules.nix:693:24:
692| else
693| concatLists (mapAttrsToList (name: defs:
| ^
694| map (def: def // {
… while calling 'mapAttrsToList'
at /nix/store/mp4clz8rfv9vwl1n589kmkcp9k36ynkc-source/lib/attrsets.nix:542:5:
541| # Attribute set to map over.
542| attrs:
| ^
543| map (name: f name attrs.${name}) (attrNames attrs);
… while calling anonymous lambda
at /nix/store/mp4clz8rfv9vwl1n589kmkcp9k36ynkc-source/lib/modules.nix:567:14:
566| lib.all
567| (c:
| ^
568| # TODO: I have my doubts that this error would occur when option definitions are not matched.
error: value is a Boolean while a set was expected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment