Skip to content

Instantly share code, notes, and snippets.

@oliver-cfc
Created October 6, 2024 22:01
Show Gist options
  • Save oliver-cfc/9f2ae54842aeda9e2f9217b223664646 to your computer and use it in GitHub Desktop.
Save oliver-cfc/9f2ae54842aeda9e2f9217b223664646 to your computer and use it in GitHub Desktop.
hyprpanel error
home-manager switch --flake .#oliver@minisnix --show-trace
warning: Git tree '/home/oliver/nix-config' is dirty
error:
… while calling the 'derivationStrict' builtin
at /builtin/derivation.nix:9:12: (source not available)
… while evaluating derivation 'home-manager-generation'
whose name attribute is located at /nix/store/5cypwijbjdxmr4i7ckpq1in7f09547fc-source/pkgs/stdenv/generic/make-derivation.nix:333:7
… while evaluating attribute 'buildCommand' of derivation 'home-manager-generation'
at /nix/store/5cypwijbjdxmr4i7ckpq1in7f09547fc-source/pkgs/build-support/trivial-builders/default.nix:68:16:
67| enableParallelBuilding = true;
68| inherit buildCommand name;
| ^
69| passAsFile = [ "buildCommand" ]
… while evaluating derivation 'activation-script'
whose name attribute is located at /nix/store/5cypwijbjdxmr4i7ckpq1in7f09547fc-source/pkgs/stdenv/generic/make-derivation.nix:333:7
… while evaluating attribute 'text' of derivation 'activation-script'
at /nix/store/5cypwijbjdxmr4i7ckpq1in7f09547fc-source/pkgs/build-support/trivial-builders/default.nix:103:16:
102| ({
103| inherit text executable checkPhase allowSubstitutes preferLocalBuild;
| ^
104| passAsFile = [ "text" ]
… while calling 'mkCmd'
at /nix/store/q1ss75nhmjiydyqw8lbzwbx7cqk8z0qq-source/modules/home-environment.nix:666:17:
665| let
666| mkCmd = res: ''
| ^
667| _iNote "Activating %s" "${res.name}"
… while calling anonymous lambda
at /nix/store/5cypwijbjdxmr4i7ckpq1in7f09547fc-source/lib/attrsets.nix:1205:18:
1204| mapAttrs
1205| (name: value:
| ^
1206| if isAttrs value && cond value
… from call site
at /nix/store/5cypwijbjdxmr4i7ckpq1in7f09547fc-source/lib/attrsets.nix:1208:18:
1207| then recurse (path ++ [ name ]) value
1208| else f (path ++ [ name ]) value);
| ^
1209| in
… while calling anonymous lambda
at /nix/store/5cypwijbjdxmr4i7ckpq1in7f09547fc-source/lib/modules.nix:242:72:
241| # For definitions that have an associated option
242| declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options;
| ^
243|
… while evaluating the option `home.activation.installPackages.data':
… while calling anonymous lambda
at /nix/store/5cypwijbjdxmr4i7ckpq1in7f09547fc-source/lib/modules.nix:824:28:
823| # Process mkMerge and mkIf properties.
824| defs' = concatMap (m:
| ^
825| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
… while evaluating definitions from `/nix/store/q1ss75nhmjiydyqw8lbzwbx7cqk8z0qq-source/modules/home-environment.nix':
… from call site
at /nix/store/5cypwijbjdxmr4i7ckpq1in7f09547fc-source/lib/modules.nix:825:137:
824| defs' = concatMap (m:
825| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
| ^
826| ) defs;
… while calling 'dischargeProperties'
at /nix/store/5cypwijbjdxmr4i7ckpq1in7f09547fc-source/lib/modules.nix:896:25:
895| */
896| dischargeProperties = def:
| ^
897| if def._type or "" == "merge" then
… while evaluating derivation 'home-manager-path'
whose name attribute is located at /nix/store/5cypwijbjdxmr4i7ckpq1in7f09547fc-source/pkgs/stdenv/generic/make-derivation.nix:333:7
… while evaluating attribute 'passAsFile' of derivation 'home-manager-path'
at /nix/store/5cypwijbjdxmr4i7ckpq1in7f09547fc-source/pkgs/build-support/trivial-builders/default.nix:69:9:
68| inherit buildCommand name;
69| passAsFile = [ "buildCommand" ]
| ^
70| ++ (derivationArgs.passAsFile or [ ]);
… while calling anonymous lambda
at /nix/store/5cypwijbjdxmr4i7ckpq1in7f09547fc-source/lib/attrsets.nix:1205:18:
1204| mapAttrs
1205| (name: value:
| ^
1206| if isAttrs value && cond value
… from call site
at /nix/store/5cypwijbjdxmr4i7ckpq1in7f09547fc-source/lib/attrsets.nix:1208:18:
1207| then recurse (path ++ [ name ]) value
1208| else f (path ++ [ name ]) value);
| ^
1209| in
… while calling anonymous lambda
at /nix/store/5cypwijbjdxmr4i7ckpq1in7f09547fc-source/lib/modules.nix:242:72:
241| # For definitions that have an associated option
242| declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options;
| ^
243|
… while evaluating the option `home.packages':
… from call site
at /nix/store/5cypwijbjdxmr4i7ckpq1in7f09547fc-source/lib/modules.nix:846:59:
845| if isDefined then
846| if all (def: type.check def.value) defsFinal then type.merge loc defsFinal
| ^
847| else let allInvalid = filter (def: ! type.check def.value) defsFinal;
… while calling 'merge'
at /nix/store/5cypwijbjdxmr4i7ckpq1in7f09547fc-source/lib/types.nix:552:20:
551| check = isList;
552| merge = loc: defs:
| ^
553| map (x: x.value) (filter (x: x ? value) (concatLists (imap1 (n: def:
… while calling anonymous lambda
at /nix/store/5cypwijbjdxmr4i7ckpq1in7f09547fc-source/lib/types.nix:553:35:
552| merge = loc: defs:
553| map (x: x.value) (filter (x: x ? value) (concatLists (imap1 (n: def:
| ^
554| imap1 (m: def':
… while calling anonymous lambda
at /nix/store/5cypwijbjdxmr4i7ckpq1in7f09547fc-source/lib/lists.nix:334:29:
333| */
334| imap1 = f: list: genList (n: f (n + 1) (elemAt list n)) (length list);
| ^
335|
… from call site
at /nix/store/5cypwijbjdxmr4i7ckpq1in7f09547fc-source/lib/lists.nix:334:32:
333| */
334| imap1 = f: list: genList (n: f (n + 1) (elemAt list n)) (length list);
| ^
335|
… while calling anonymous lambda
at /nix/store/5cypwijbjdxmr4i7ckpq1in7f09547fc-source/lib/types.nix:554:21:
553| map (x: x.value) (filter (x: x ? value) (concatLists (imap1 (n: def:
554| imap1 (m: def':
| ^
555| (mergeDefinitions
… while calling anonymous lambda
at /nix/store/5cypwijbjdxmr4i7ckpq1in7f09547fc-source/lib/modules.nix:824:28:
823| # Process mkMerge and mkIf properties.
824| defs' = concatMap (m:
| ^
825| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
… while evaluating definitions from `/nix/store/0510hrk5yq11wg1wszpl4fcr50zxy9f4-source/home-manager/pkgs/hyprpanel.nix':
… from call site
at /nix/store/5cypwijbjdxmr4i7ckpq1in7f09547fc-source/lib/modules.nix:825:137:
824| defs' = concatMap (m:
825| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
| ^
826| ) defs;
… while calling 'dischargeProperties'
at /nix/store/5cypwijbjdxmr4i7ckpq1in7f09547fc-source/lib/modules.nix:896:25:
895| */
896| dischargeProperties = def:
| ^
897| if def._type or "" == "merge" then
… from call site
at /nix/store/ws7m4xfr98yns7q7aqw6wxy50yhas9da-source/flake.nix:67:15:
66| if final ? callPackage
67| then (final.callPackage ./nix {inherit inputs;}).desktop.script
| ^
68| else inputs.self.packages.${prev.stdenv.system}.default;
… while calling 'callPackageWith'
at /nix/store/5cypwijbjdxmr4i7ckpq1in7f09547fc-source/lib/customisation.nix:212:35:
211| */
212| callPackageWith = autoArgs: fn: args:
| ^
213| let
… from call site
at /nix/store/5cypwijbjdxmr4i7ckpq1in7f09547fc-source/lib/customisation.nix:225:10:
224| # Filter out arguments that have a default value
225| (filterAttrs (name: value: ! value)
| ^
226| # Filter out arguments that would be passed
… while calling 'filterAttrs'
at /nix/store/5cypwijbjdxmr4i7ckpq1in7f09547fc-source/lib/attrsets.nix:646:5:
645| pred:
646| set:
| ^
647| listToAttrs (concatMap (name: let v = set.${name}; in if pred name v then [(nameValuePair name v)] else []) (attrNames set));
… from call site
at /nix/store/5cypwijbjdxmr4i7ckpq1in7f09547fc-source/lib/customisation.nix:215:15:
214| f = if isFunction fn then fn else import fn;
215| fargs = functionArgs f;
| ^
216|
… while calling 'functionArgs'
at /nix/store/5cypwijbjdxmr4i7ckpq1in7f09547fc-source/lib/trivial.nix:913:18:
912| */
913| functionArgs = f:
| ^
914| if f ? __functor
error: syntax error, unexpected '.', expecting '}'
at /nix/store/ws7m4xfr98yns7q7aqw6wxy50yhas9da-source/nix/default.nix:24:8:
23| libgtop,
24| gnome.gnome-bluetooth,
| ^
25| gobject-introspection,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment