Skip to content

Instantly share code, notes, and snippets.

@Kirth
Last active October 24, 2022 17:21
Show Gist options
  • Save Kirth/99d2db9a4588488df17bf6cd1d66edc9 to your computer and use it in GitHub Desktop.
Save Kirth/99d2db9a4588488df17bf6cd1d66edc9 to your computer and use it in GitHub Desktop.
angan% cat home.nix
{ config, pkgs, ... }:
{
programs.home-manager.enable = true;
home.username = "kirth";
home.homeDirectory = "/home/kirth";
home.stateVersion = "22.05";
}
angan% home-manager switch
error: attribute 'numbers' missing
at /home/kirth/.nix-defexpr/channels/home-manager/modules/services/picom.nix:144:14:
143| activeOpacity = mkOption {
144| type = types.numbers.between 0 1;
| ^
145| default = 1.0;
(use '--show-trace' to show detailed location information)
angan% home-manager switch --show-trace
error: attribute 'numbers' missing
at /home/kirth/.nix-defexpr/channels/home-manager/modules/services/picom.nix:144:14:
143| activeOpacity = mkOption {
144| type = types.numbers.between 0 1;
| ^
145| default = 1.0;
… while evaluating the attribute 'type.getSubModules'
at /home/kirth/.nix-defexpr/channels/home-manager/modules/services/picom.nix:144:7:
143| activeOpacity = mkOption {
144| type = types.numbers.between 0 1;
| ^
145| default = 1.0;
… while evaluating 'fixupOptionType'
at /nix/store/hjy0pr77j4xvmfp5x9y4vfaca9vdap8j-nixos-22.05/nixos/lib/modules.nix:893:26:
892| # TODO: Merge this into mergeOptionDecls
893| fixupOptionType = loc: opt:
| ^
894| if opt.type.getSubModules or null == null
… from call site
at /nix/store/hjy0pr77j4xvmfp5x9y4vfaca9vdap8j-nixos-22.05/nixos/lib/modules.nix:609:23:
608| if length optionDecls == length decls then
609| let opt = fixupOptionType loc (mergeOptionDecls loc decls);
| ^
610| in {
… while evaluating 'warnIf'
at /nix/store/hjy0pr77j4xvmfp5x9y4vfaca9vdap8j-nixos-22.05/nixos/lib/trivial.nix:350:18:
349| */
350| warnIf = cond: msg: if cond then warn msg else x: x;
| ^
351|
… from call site
at /nix/store/hjy0pr77j4xvmfp5x9y4vfaca9vdap8j-nixos-22.05/nixos/lib/modules.nix:742:9:
741| warnDeprecation =
742| warnIf (opt.type.deprecationMessage != null)
| ^
743| "The type `types.${opt.type.name}' of option `${showOption loc}' defined in ${showFiles opt.declarations} is deprecated. ${opt.type.deprecationMessage}";
… while evaluating 'evalOptionValue'
at /nix/store/hjy0pr77j4xvmfp5x9y4vfaca9vdap8j-nixos-22.05/nixos/lib/modules.nix:717:31:
716| config value. */
717| evalOptionValue = loc: opt: defs:
| ^
718| let
… from call site
at /nix/store/hjy0pr77j4xvmfp5x9y4vfaca9vdap8j-nixos-22.05/nixos/lib/modules.nix:611:32:
610| in {
611| matchedOptions = evalOptionValue loc opt defns';
| ^
612| unmatchedDefns = [];
… while evaluating the attribute 'matchedOptions'
at /nix/store/hjy0pr77j4xvmfp5x9y4vfaca9vdap8j-nixos-22.05/nixos/lib/modules.nix:611:15:
610| in {
611| matchedOptions = evalOptionValue loc opt defns';
| ^
612| unmatchedDefns = [];
… while evaluating anonymous lambda
at /nix/store/hjy0pr77j4xvmfp5x9y4vfaca9vdap8j-nixos-22.05/nixos/lib/modules.nix:642:37:
641|
642| matchedOptions = mapAttrs (n: v: v.matchedOptions) resultsByName;
| ^
643|
… from call site
… while evaluating 'isType'
at /nix/store/hjy0pr77j4xvmfp5x9y4vfaca9vdap8j-nixos-22.05/nixos/lib/types.nix:71:18:
70| rec {
71| isType = type: x: (x._type or "") == type;
| ^
72|
… from call site
at /nix/store/hjy0pr77j4xvmfp5x9y4vfaca9vdap8j-nixos-22.05/nixos/lib/attrsets.nix:279:8:
278| collect = pred: attrs:
279| if pred attrs then
| ^
280| [ attrs ]
… while evaluating 'collect'
at /nix/store/hjy0pr77j4xvmfp5x9y4vfaca9vdap8j-nixos-22.05/nixos/lib/attrsets.nix:278:19:
277| */
278| collect = pred: attrs:
| ^
279| if pred attrs then
… from call site
at /nix/store/hjy0pr77j4xvmfp5x9y4vfaca9vdap8j-nixos-22.05/nixos/lib/attrsets.nix:282:7:
281| else if isAttrs attrs then
282| concatMap (collect pred) (attrValues attrs)
| ^
283| else
… while evaluating 'collect'
at /nix/store/hjy0pr77j4xvmfp5x9y4vfaca9vdap8j-nixos-22.05/nixos/lib/attrsets.nix:278:19:
277| */
278| collect = pred: attrs:
| ^
279| if pred attrs then
… from call site
at /nix/store/hjy0pr77j4xvmfp5x9y4vfaca9vdap8j-nixos-22.05/nixos/lib/attrsets.nix:282:7:
281| else if isAttrs attrs then
282| concatMap (collect pred) (attrValues attrs)
| ^
283| else
… while evaluating 'collect'
at /nix/store/hjy0pr77j4xvmfp5x9y4vfaca9vdap8j-nixos-22.05/nixos/lib/attrsets.nix:278:19:
277| */
278| collect = pred: attrs:
| ^
279| if pred attrs then
… from call site
at /nix/store/hjy0pr77j4xvmfp5x9y4vfaca9vdap8j-nixos-22.05/nixos/lib/attrsets.nix:282:7:
281| else if isAttrs attrs then
282| concatMap (collect pred) (attrValues attrs)
| ^
283| else
… while evaluating 'collect'
at /nix/store/hjy0pr77j4xvmfp5x9y4vfaca9vdap8j-nixos-22.05/nixos/lib/attrsets.nix:278:19:
277| */
278| collect = pred: attrs:
| ^
279| if pred attrs then
… from call site
at /nix/store/hjy0pr77j4xvmfp5x9y4vfaca9vdap8j-nixos-22.05/nixos/lib/options.nix:244:67:
243| in
244| [ docOption ] ++ optionals subOptionsVisible subOptions) (collect isOption options);
| ^
245|
… while evaluating 'optionAttrSetToDocList''
at /nix/store/hjy0pr77j4xvmfp5x9y4vfaca9vdap8j-nixos-22.05/nixos/lib/options.nix:218:37:
217|
218| optionAttrSetToDocList' = prefix: options:
| ^
219| concatMap (opt:
… from call site
at /nix/store/4f1grv7fxazjl2yzmdpd3hcz4kibcpj6-source/lib/modules-doc.nix:44:8:
43| (filter (opt: opt.visible && !opt.internal)
44| (optionAttrSetToDocList evaluatedModules.options))));
| ^
45|
… while evaluating the attribute 'text' of the derivation 'nmd-options.xml'
at /nix/store/hjy0pr77j4xvmfp5x9y4vfaca9vdap8j-nixos-22.05/nixos/pkgs/stdenv/generic/make-derivation.nix:278:7:
277| // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
278| name =
| ^
279| let
… while evaluating the attribute 'buildCommand' of the derivation 'options-db.xml'
at /nix/store/hjy0pr77j4xvmfp5x9y4vfaca9vdap8j-nixos-22.05/nixos/pkgs/stdenv/generic/make-derivation.nix:278:7:
277| // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
278| name =
| ^
279| let
… while evaluating the attribute 'passAsFile'
at /nix/store/hjy0pr77j4xvmfp5x9y4vfaca9vdap8j-nixos-22.05/nixos/pkgs/build-support/buildenv/default.nix:77:5:
76| # XXX: The size is somewhat arbitrary
77| passAsFile = if builtins.stringLength pkgs >= 128*1024 then [ "pkgs" ] else [ ];
| ^
78| }
… while evaluating the attribute 'passAsFile' of the derivation 'nmd-documents'
at /nix/store/hjy0pr77j4xvmfp5x9y4vfaca9vdap8j-nixos-22.05/nixos/pkgs/stdenv/generic/make-derivation.nix:278:7:
277| // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
278| name =
| ^
279| let
… while evaluating the attribute 'buildCommand' of the derivation 'manual-combined'
at /nix/store/hjy0pr77j4xvmfp5x9y4vfaca9vdap8j-nixos-22.05/nixos/pkgs/stdenv/generic/make-derivation.nix:278:7:
277| // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
278| name =
| ^
279| let
… while evaluating the attribute 'buildCommand' of the derivation 'manual-olinkdb'
at /nix/store/hjy0pr77j4xvmfp5x9y4vfaca9vdap8j-nixos-22.05/nixos/pkgs/stdenv/generic/make-derivation.nix:278:7:
277| // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
278| name =
| ^
279| let
… while evaluating the attribute 'buildCommand' of the derivation 'man-pages'
at /nix/store/hjy0pr77j4xvmfp5x9y4vfaca9vdap8j-nixos-22.05/nixos/pkgs/stdenv/generic/make-derivation.nix:278:7:
277| // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
278| name =
| ^
279| let
… while evaluating the attribute 'passAsFile'
at /nix/store/hjy0pr77j4xvmfp5x9y4vfaca9vdap8j-nixos-22.05/nixos/pkgs/build-support/buildenv/default.nix:77:5:
76| # XXX: The size is somewhat arbitrary
77| passAsFile = if builtins.stringLength pkgs >= 128*1024 then [ "pkgs" ] else [ ];
| ^
78| }
… while evaluating the attribute 'passAsFile' of the derivation 'home-manager-path'
at /nix/store/hjy0pr77j4xvmfp5x9y4vfaca9vdap8j-nixos-22.05/nixos/pkgs/stdenv/generic/make-derivation.nix:278:7:
277| // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
278| name =
| ^
279| let
… while evaluating the attribute 'value'
at /nix/store/hjy0pr77j4xvmfp5x9y4vfaca9vdap8j-nixos-22.05/nixos/lib/modules.nix:581:44:
580| defnsByName' = byName "config" (module: value:
581| [{ inherit (module) file; inherit value; }]
| ^
582| ) configs;
… while evaluating 'dischargeProperties'
at /nix/store/hjy0pr77j4xvmfp5x9y4vfaca9vdap8j-nixos-22.05/nixos/lib/modules.nix:832:25:
831| */
832| dischargeProperties = def:
| ^
833| if def._type or "" == "merge" then
… from call site
at /nix/store/hjy0pr77j4xvmfp5x9y4vfaca9vdap8j-nixos-22.05/nixos/lib/modules.nix:761:137:
760| defs' = concatMap (m:
761| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
| ^
762| ) defs;
… while evaluating definitions from `/home/kirth/.nix-defexpr/channels/home-manager/modules/home-environment.nix':
… while evaluating anonymous lambda
at /nix/store/hjy0pr77j4xvmfp5x9y4vfaca9vdap8j-nixos-22.05/nixos/lib/modules.nix:760:28:
759| # Process mkMerge and mkIf properties.
760| defs' = concatMap (m:
| ^
761| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
… from call site
at /nix/store/hjy0pr77j4xvmfp5x9y4vfaca9vdap8j-nixos-22.05/nixos/lib/modules.nix:760:17:
759| # Process mkMerge and mkIf properties.
760| defs' = concatMap (m:
| ^
761| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
… while evaluating the attribute 'values'
at /nix/store/hjy0pr77j4xvmfp5x9y4vfaca9vdap8j-nixos-22.05/nixos/lib/modules.nix:873:7:
872| in {
873| values = concatMap (def: if getPrio def == highestPrio then [(strip def)] else []) defs;
| ^
874| inherit highestPrio;
… while evaluating the attribute 'values'
at /nix/store/hjy0pr77j4xvmfp5x9y4vfaca9vdap8j-nixos-22.05/nixos/lib/modules.nix:774:9:
773| in {
774| values = defs''';
| ^
775| inherit (defs'') highestPrio;
… while evaluating the attribute 'mergedValue'
at /nix/store/hjy0pr77j4xvmfp5x9y4vfaca9vdap8j-nixos-22.05/nixos/lib/modules.nix:780:5:
779| # Type-check the remaining definitions, and merge them. Or throw if no definitions.
780| mergedValue =
| ^
781| if isDefined then
… while evaluating the option `home.activation.installPackages.data':
… while evaluating the attribute 'value'
at /nix/store/hjy0pr77j4xvmfp5x9y4vfaca9vdap8j-nixos-22.05/nixos/lib/modules.nix:746:9:
745| in warnDeprecation opt //
746| { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
| ^
747| inherit (res.defsFinal') highestPrio;
… while evaluating anonymous lambda
at /nix/store/hjy0pr77j4xvmfp5x9y4vfaca9vdap8j-nixos-22.05/nixos/lib/modules.nix:296:72:
295| # For definitions that have an associated option
296| declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options;
| ^
297|
… from call site
at /nix/store/hjy0pr77j4xvmfp5x9y4vfaca9vdap8j-nixos-22.05/nixos/lib/attrsets.nix:401:20:
400| then recurse (path ++ [name]) value
401| else f (path ++ [name]) value;
| ^
402| in mapAttrs g;
… while evaluating 'g'
at /nix/store/hjy0pr77j4xvmfp5x9y4vfaca9vdap8j-nixos-22.05/nixos/lib/attrsets.nix:398:19:
397| g =
398| name: value:
| ^
399| if isAttrs value && cond value
… from call site
… while evaluating the attribute 'data'
at /home/kirth/.nix-defexpr/channels/home-manager/modules/lib/dag.nix:83:9:
82| name = n;
83| data = v.data;
| ^
84| after = v.after ++ dagBefore dag n;
… while evaluating the attribute 'data'
at /home/kirth/.nix-defexpr/channels/home-manager/modules/lib/dag.nix:89:37:
88| in if sorted ? result then {
89| result = map (v: { inherit (v) name data; }) sorted.result;
| ^
90| } else
… while evaluating 'mkCmd'
at /home/kirth/.nix-defexpr/channels/home-manager/modules/home-environment.nix:638:17:
637| let
638| mkCmd = res: ''
| ^
639| _iNote "Activating %s" "${res.name}"
… from call site
… while evaluating the attribute 'text' of the derivation 'activation-script'
at /nix/store/hjy0pr77j4xvmfp5x9y4vfaca9vdap8j-nixos-22.05/nixos/pkgs/stdenv/generic/make-derivation.nix:278:7:
277| // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
278| name =
| ^
279| let
… while evaluating the attribute 'buildCommand' of the derivation 'home-manager-generation'
at /nix/store/hjy0pr77j4xvmfp5x9y4vfaca9vdap8j-nixos-22.05/nixos/pkgs/stdenv/generic/make-derivation.nix:278:7:
277| // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
278| name =
| ^
279| let
angan% cat home.nix
{ config, pkgs, ... }:
{
programs.home-manager.enable = true;
home.username = "kirth";
home.homeDirectory = "/home/kirth";
home.stateVersion = "22.05";
}
angan% home-manager switch
error: attribute 'numbers' missing
at /home/kirth/.nix-defexpr/channels/home-manager/modules/services/picom.nix:144:14:
143| activeOpacity = mkOption {
144| type = types.numbers.between 0 1;
| ^
145| default = 1.0;
(use '--show-trace' to show detailed location information)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment