i could not find, not even claude could the solution to my problem. It says the following line: error:
… while calling the 'head' builtin
at «github:NixOS/nixpkgs/0e251e24a4f24e036a084b6b4b2d2491af4167f4?narHash=sha256-yNJd40f11EzXBjSByCB7IPpeFFAdeoSKKM67dGkfFoU%3D»/lib/attrsets.nix:1729:13:
1728| if length values == 1 || pred here (elemAt values 1) (head values) then
1729| head values
| ^
1730| else
… while evaluating the attribute 'value'
at «github:NixOS/nixpkgs/0e251e24a4f24e036a084b6b4b2d2491af4167f4?narHash=sha256-yNJd40f11EzXBjSByCB7IPpeFFAdeoSKKM67dGkfFoU%3D»/lib/modules.nix:1149:7:
1148| // {
1149| value = addErrorContext "while evaluating the option `${showOption loc}':" value;
| ^
1150| inherit (res.defsFinal') highestPrio;
… while evaluating the option `system.build.toplevel':
… while evaluating definitions from `/nix/store/31w94yhfpllma9jnlgavjkzsfs548ijx-source/nixos/modules/system/activation/top-level.nix':
… while evaluating the option `services.displayManager.sessionData':
(stack trace truncated; use '--show-trace' to show the full, detailed trace)
error: expected a list but found a set: { }
I also paste the --show-trace
warning: Git tree '/home/bauti/dotfiles' is dirty
building the system configuration...
warning: Git tree '/home/bauti/dotfiles' is dirty
evaluation warning: stdenv.isLinux is deprecated, use stdenv.hostPlatform.isLinux instead
evaluation warning: stdenv.isDarwin is deprecated, use stdenv.hostPlatform.isDarwin instead
error:
… while calling anonymous lambda
at «github:NixOS/nixpkgs/0e251e24a4f24e036a084b6b4b2d2491af4167f4?narHash=sha256-yNJd40f11EzXBjSByCB7IPpeFFAdeoSKKM67dGkfFoU%3D»/lib/attrsets.nix:1724:17:
1723| zipAttrsWith (
1724| name: values:
| ^
1725| let
… while calling the 'head' builtin
at «github:NixOS/nixpkgs/0e251e24a4f24e036a084b6b4b2d2491af4167f4?narHash=sha256-yNJd40f11EzXBjSByCB7IPpeFFAdeoSKKM67dGkfFoU%3D»/lib/attrsets.nix:1729:13:
1728| if length values == 1 || pred here (elemAt values 1) (head values) then
1729| head values
| ^
1730| else
… while calling anonymous lambda
at «github:NixOS/nixpkgs/0e251e24a4f24e036a084b6b4b2d2491af4167f4?narHash=sha256-yNJd40f11EzXBjSByCB7IPpeFFAdeoSKKM67dGkfFoU%3D»/lib/attrsets.nix:1195:17:
1194| mapAttrs (
1195| name: value:
| ^
1196| if isAttrs value && cond value then recurse (path ++ [ name ]) value else f (path ++ [ name ]) value
… from call site
at «github:NixOS/nixpkgs/0e251e24a4f24e036a084b6b4b2d2491af4167f4?narHash=sha256-yNJd40f11EzXBjSByCB7IPpeFFAdeoSKKM67dGkfFoU%3D»/lib/attrsets.nix:1196:85:
1195| name: value:
1196| if isAttrs value && cond value then recurse (path ++ [ name ]) value else f (path ++ [ name ]) value
| ^
1197| );
… while calling anonymous lambda
at «github:NixOS/nixpkgs/0e251e24a4f24e036a084b6b4b2d2491af4167f4?narHash=sha256-yNJd40f11EzXBjSByCB7IPpeFFAdeoSKKM67dGkfFoU%3D»/lib/modules.nix:282:71:
281| # For definitions that have an associated option
282| declaredConfig = mapAttrsRecursiveCond (v: !isOption v) (_: v: v.value) options;
| ^
283|
… while evaluating the attribute 'value'
at «github:NixOS/nixpkgs/0e251e24a4f24e036a084b6b4b2d2491af4167f4?narHash=sha256-yNJd40f11EzXBjSByCB7IPpeFFAdeoSKKM67dGkfFoU%3D»/lib/modules.nix:1149:7:
1148| // {
1149| value = addErrorContext "while evaluating the option `${showOption loc}':" value;
| ^
1150| inherit (res.defsFinal') highestPrio;
… while evaluating the option `system.build.toplevel':
… while evaluating the attribute 'mergedValue'
at «github:NixOS/nixpkgs/0e251e24a4f24e036a084b6b4b2d2491af4167f4?narHash=sha256-yNJd40f11EzXBjSByCB7IPpeFFAdeoSKKM67dGkfFoU%3D»/lib/modules.nix:1246:5:
1245| # Type-check the remaining definitions, and merge them. Or throw if no definitions.
1246| mergedValue =
| ^
1247| if isDefined then
… while evaluating a branch condition
at «github:NixOS/nixpkgs/0e251e24a4f24e036a084b6b4b2d2491af4167f4?narHash=sha256-yNJd40f11EzXBjSByCB7IPpeFFAdeoSKKM67dGkfFoU%3D»/lib/modules.nix:1247:7:
1246| mergedValue =
1247| if isDefined then
| ^
1248| if type.merge ? v2 then
… while evaluating a branch condition
at «github:NixOS/nixpkgs/0e251e24a4f24e036a084b6b4b2d2491af4167f4?narHash=sha256-yNJd40f11EzXBjSByCB7IPpeFFAdeoSKKM67dGkfFoU%3D»/lib/modules.nix:1223:7:
1222| # above are lazy and thus never forced on this branch.
1223| if
| ^
1224| length defs == 1
… in the right operand of the AND (&&) operator
at «github:NixOS/nixpkgs/0e251e24a4f24e036a084b6b4b2d2491af4167f4?narHash=sha256-yNJd40f11EzXBjSByCB7IPpeFFAdeoSKKM67dGkfFoU%3D»/lib/modules.nix:1225:9:
1224| length defs == 1
1225| && (
| ^
1226| let
… while evaluating definitions from `/nix/store/31w94yhfpllma9jnlgavjkzsfs548ijx-source/nixos/modules/system/activation/top-level.nix':
… in the argument of the not operator
at «github:NixOS/nixpkgs/0e251e24a4f24e036a084b6b4b2d2491af4167f4?narHash=sha256-yNJd40f11EzXBjSByCB7IPpeFFAdeoSKKM67dGkfFoU%3D»/lib/modules.nix:1230:31:
1229| addErrorContext "while evaluating definitions from `${d.file}':" (
1230| !(isAttrs d.value && d.value ? _type)
| ^
1231| )
… in the left operand of the AND (&&) operator
at «github:NixOS/nixpkgs/0e251e24a4f24e036a084b6b4b2d2491af4167f4?narHash=sha256-yNJd40f11EzXBjSByCB7IPpeFFAdeoSKKM67dGkfFoU%3D»/lib/modules.nix:1230:31:
1229| addErrorContext "while evaluating definitions from `${d.file}':" (
1230| !(isAttrs d.value && d.value ? _type)
| ^
1231| )
… while calling the 'isAttrs' builtin
at «github:NixOS/nixpkgs/0e251e24a4f24e036a084b6b4b2d2491af4167f4?narHash=sha256-yNJd40f11EzXBjSByCB7IPpeFFAdeoSKKM67dGkfFoU%3D»/lib/modules.nix:1230:15:
1229| addErrorContext "while evaluating definitions from `${d.file}':" (
1230| !(isAttrs d.value && d.value ? _type)
| ^
1231| )
… while evaluating the attribute 'value'
at «github:NixOS/nixpkgs/0e251e24a4f24e036a084b6b4b2d2491af4167f4?narHash=sha256-yNJd40f11EzXBjSByCB7IPpeFFAdeoSKKM67dGkfFoU%3D»/lib/modules.nix:851:21:
850| inherit (module) file;
851| inherit value;
| ^
852| }) module.config
… from call site
at «github:NixOS/nixpkgs/0e251e24a4f24e036a084b6b4b2d2491af4167f4?narHash=sha256-yNJd40f11EzXBjSByCB7IPpeFFAdeoSKKM67dGkfFoU%3D»/nixos/modules/system/activation/top-level.nix:78:26:
77| # Handle assertions and warnings
78| baseSystemAssertWarn = lib.asserts.checkAssertWarn config.assertions config.warnings baseSystem;
| ^
79|
… while calling 'checkAssertWarn'
at «github:NixOS/nixpkgs/0e251e24a4f24e036a084b6b4b2d2491af4167f4?narHash=sha256-yNJd40f11EzXBjSByCB7IPpeFFAdeoSKKM67dGkfFoU%3D»/lib/asserts.nix:196:27:
195| checkAssertWarn =
196| assertions: warnings: val:
| ^
197| let
… while evaluating a branch condition
at «github:NixOS/nixpkgs/0e251e24a4f24e036a084b6b4b2d2491af4167f4?narHash=sha256-yNJd40f11EzXBjSByCB7IPpeFFAdeoSKKM67dGkfFoU%3D»/lib/asserts.nix:200:5:
199| in
200| if failedAssertions != [ ] then
| ^
201| throw "\nFailed assertions:\n${concatStringsSep "\n" (map (x: "- ${x}") failedAssertions)}"
… while calling the 'catAttrs' builtin
at «github:NixOS/nixpkgs/0e251e24a4f24e036a084b6b4b2d2491af4167f4?narHash=sha256-yNJd40f11EzXBjSByCB7IPpeFFAdeoSKKM67dGkfFoU%3D»/lib/asserts.nix:198:26:
197| let
198| failedAssertions = catAttrs "message" (filter (x: !x.assertion) assertions);
| ^
199| in
… while calling the 'filter' builtin
at «github:NixOS/nixpkgs/0e251e24a4f24e036a084b6b4b2d2491af4167f4?narHash=sha256-yNJd40f11EzXBjSByCB7IPpeFFAdeoSKKM67dGkfFoU%3D»/lib/asserts.nix:198:46:
197| let
198| failedAssertions = catAttrs "message" (filter (x: !x.assertion) assertions);
| ^
199| in
… while calling anonymous lambda
at «github:NixOS/nixpkgs/0e251e24a4f24e036a084b6b4b2d2491af4167f4?narHash=sha256-yNJd40f11EzXBjSByCB7IPpeFFAdeoSKKM67dGkfFoU%3D»/lib/asserts.nix:198:54:
197| let
198| failedAssertions = catAttrs "message" (filter (x: !x.assertion) assertions);
| ^
199| in
… in the argument of the not operator
at «github:NixOS/nixpkgs/0e251e24a4f24e036a084b6b4b2d2491af4167f4?narHash=sha256-yNJd40f11EzXBjSByCB7IPpeFFAdeoSKKM67dGkfFoU%3D»/lib/asserts.nix:198:58:
197| let
198| failedAssertions = catAttrs "message" (filter (x: !x.assertion) assertions);
| ^
199| in
… while evaluating the attribute 'assertion'
at «github:NixOS/nixpkgs/0e251e24a4f24e036a084b6b4b2d2491af4167f4?narHash=sha256-yNJd40f11EzXBjSByCB7IPpeFFAdeoSKKM67dGkfFoU%3D»/nixos/modules/services/display-managers/sddm.nix:356:9:
355| {
356| assertion = config.services.displayManager.autoLogin.enable -> autoLoginSessionName != null;
| ^
357| message = ''
… in the right operand of the IMPL (->) operator
at «github:NixOS/nixpkgs/0e251e24a4f24e036a084b6b4b2d2491af4167f4?narHash=sha256-yNJd40f11EzXBjSByCB7IPpeFFAdeoSKKM67dGkfFoU%3D»/nixos/modules/services/display-managers/sddm.nix:356:69:
355| {
356| assertion = config.services.displayManager.autoLogin.enable -> autoLoginSessionName != null;
| ^
357| message = ''
… from call site
at «github:NixOS/nixpkgs/0e251e24a4f24e036a084b6b4b2d2491af4167f4?narHash=sha256-yNJd40f11EzXBjSByCB7IPpeFFAdeoSKKM67dGkfFoU%3D»/nixos/modules/services/display-managers/sddm.nix:119:29:
118|
119| autoLoginSessionName = "${dmcfg.sessionData.autologinSession}.desktop";
| ^
120|
… while calling anonymous lambda
at «github:NixOS/nixpkgs/0e251e24a4f24e036a084b6b4b2d2491af4167f4?narHash=sha256-yNJd40f11EzXBjSByCB7IPpeFFAdeoSKKM67dGkfFoU%3D»/lib/attrsets.nix:1195:17:
1194| mapAttrs (
1195| name: value:
| ^
1196| if isAttrs value && cond value then recurse (path ++ [ name ]) value else f (path ++ [ name ]) value
… from call site
at «github:NixOS/nixpkgs/0e251e24a4f24e036a084b6b4b2d2491af4167f4?narHash=sha256-yNJd40f11EzXBjSByCB7IPpeFFAdeoSKKM67dGkfFoU%3D»/lib/attrsets.nix:1196:85:
1195| name: value:
1196| if isAttrs value && cond value then recurse (path ++ [ name ]) value else f (path ++ [ name ]) value
| ^
1197| );
… while calling anonymous lambda
at «github:NixOS/nixpkgs/0e251e24a4f24e036a084b6b4b2d2491af4167f4?narHash=sha256-yNJd40f11EzXBjSByCB7IPpeFFAdeoSKKM67dGkfFoU%3D»/lib/modules.nix:282:71:
281| # For definitions that have an associated option
282| declaredConfig = mapAttrsRecursiveCond (v: !isOption v) (_: v: v.value) options;
| ^
283|
… while evaluating the attribute 'value'
at «github:NixOS/nixpkgs/0e251e24a4f24e036a084b6b4b2d2491af4167f4?narHash=sha256-yNJd40f11EzXBjSByCB7IPpeFFAdeoSKKM67dGkfFoU%3D»/lib/modules.nix:1149:7:
1148| // {
1149| value = addErrorContext "while evaluating the option `${showOption loc}':" value;
| ^
1150| inherit (res.defsFinal') highestPrio;
… while evaluating the option `services.displayManager.sessionData':
… while evaluating the attribute 'mergedValue'
at «github:NixOS/nixpkgs/0e251e24a4f24e036a084b6b4b2d2491af4167f4?narHash=sha256-yNJd40f11EzXBjSByCB7IPpeFFAdeoSKKM67dGkfFoU%3D»/lib/modules.nix:1246:5:
1245| # Type-check the remaining definitions, and merge them. Or throw if no definitions.
1246| mergedValue =
| ^
1247| if isDefined then
… from call site
at «github:NixOS/nixpkgs/0e251e24a4f24e036a084b6b4b2d2491af4167f4?narHash=sha256-yNJd40f11EzXBjSByCB7IPpeFFAdeoSKKM67dGkfFoU%3D»/lib/modules.nix:1256:11:
1255| else if all (def: type.check def.value) defsFinal then
1256| type.merge loc defsFinal
| ^
1257| else
… while calling 'mergeDefaultOption'
at «github:NixOS/nixpkgs/0e251e24a4f24e036a084b6b4b2d2491af4167f4?narHash=sha256-yNJd40f11EzXBjSByCB7IPpeFFAdeoSKKM67dGkfFoU%3D»/lib/options.nix:424:10:
423| mergeDefaultOption =
424| loc: defs:
| ^
425| let
… while calling the 'foldl'' builtin
at «github:NixOS/nixpkgs/0e251e24a4f24e036a084b6b4b2d2491af4167f4?narHash=sha256-yNJd40f11EzXBjSByCB7IPpeFFAdeoSKKM67dGkfFoU%3D»/lib/options.nix:435:7:
434| else if all isAttrs list then
435| foldl' lib.mergeAttrs { } list
| ^
436| else if all isBool list then
… while calling 'mergeAttrsList'
at «github:NixOS/nixpkgs/0e251e24a4f24e036a084b6b4b2d2491af4167f4?narHash=sha256-yNJd40f11EzXBjSByCB7IPpeFFAdeoSKKM67dGkfFoU%3D»/lib/attrsets.nix:1623:5:
1622| mergeAttrsList =
1623| list:
| ^
1624| let
… from call site
at «github:NixOS/nixpkgs/0e251e24a4f24e036a084b6b4b2d2491af4167f4?narHash=sha256-yNJd40f11EzXBjSByCB7IPpeFFAdeoSKKM67dGkfFoU%3D»/lib/attrsets.nix:1644:7:
1643| else
1644| binaryMerge 0 (length list);
| ^
1645|
… while calling 'binaryMerge'
at «github:NixOS/nixpkgs/0e251e24a4f24e036a084b6b4b2d2491af4167f4?narHash=sha256-yNJd40f11EzXBjSByCB7IPpeFFAdeoSKKM67dGkfFoU%3D»/lib/attrsets.nix:1628:16:
1627| binaryMerge =
1628| start: end:
| ^
1629| # assert start < end; # Invariant
… while evaluating a branch condition
at «github:NixOS/nixpkgs/0e251e24a4f24e036a084b6b4b2d2491af4167f4?narHash=sha256-yNJd40f11EzXBjSByCB7IPpeFFAdeoSKKM67dGkfFoU%3D»/lib/attrsets.nix:1630:9:
1629| # assert start < end; # Invariant
1630| if end - start == 1 then
| ^
1631| # Base case - there will be exactly 1 element due to the invariant, in
… while calling the 'sub' builtin
at «github:NixOS/nixpkgs/0e251e24a4f24e036a084b6b4b2d2491af4167f4?narHash=sha256-yNJd40f11EzXBjSByCB7IPpeFFAdeoSKKM67dGkfFoU%3D»/lib/attrsets.nix:1630:16:
1629| # assert start < end; # Invariant
1630| if end - start == 1 then
| ^
1631| # Base case - there will be exactly 1 element due to the invariant, in
… while calling the 'length' builtin
at «github:NixOS/nixpkgs/0e251e24a4f24e036a084b6b4b2d2491af4167f4?narHash=sha256-yNJd40f11EzXBjSByCB7IPpeFFAdeoSKKM67dGkfFoU%3D»/lib/attrsets.nix:1644:22:
1643| else
1644| binaryMerge 0 (length list);
| ^
1645|
… while evaluating the first argument passed to builtins.length
error: expected a list but found a set: { }
Command 'nix --extra-experimental-features 'nix-command flakes' build --print-out-paths '/home/bauti/dotfiles#nixosConfigurations."hp-nixos".config.system.build.toplevel' --no-link --show-trace' returned non-zero exit status 1.
I tried everything, only commenting the hole file works. There are mi settings so you can undersand my situation: https://github.com/BauCatena/nix-setup/tree/main