Nixos-upgrade failing

I’m using nixpkgs, and nixos unstable channels,
I see 2 main issues on upgrades, yesterday when running
sudo nixos-rebuild switch --upgrade --keep-going
I got some issues related to python setuptools, and all python3.10 packages were not building, I didn’t find any bug report and today when retrying I didn’t see that, but I saw another problem which halted process one step behind the package build, so I don’t know they are related or previous one is solved or not,
the current error is

unpacking channels...
building Nix...
building the system configuration...
error: 'libseat' has been renamed to/replaced by 'seatd'

If needed I can post traceback as well

oh also it may be relevant I have home manager as a module imported to my configuration.nix

relevant data and files are alot so just ask for it if needed, cause I have no idea where it may be from

also a bunch of small sub questions, I dont think they deserve a thread so here we go

  1. how can I safely go to stable channels? without causing a error hell,
  2. is the old packages problem a by design problem? can’t unstable channels be automated to get latest packages publisher automatically and publish (and maintainer just do testing) rather than personally doing version hops, I’m on unstable version but I still have 0ad ver XXV rather than XXVI and vscode everyday prompt me about update, is there a solution for these?

Not much I can tell you just from that error without seeing your config. Could you post the relevant parts?

You mention that you use home-manager. Which channel of hm are you using?

“Normal” NixOS configs should be fairly portable between the current stable and unstable channels. Maybe one or two options that differ but those cases can actually be handled in-code fairly easily. Mine can be built on both 22.05 and 22.11 (haven’t tested the desktop).
I strongly suspect your issue is due to home-manager or something special you do in your configs.

For trivial bumps, we’ve got robo-ryantm to help out but even that needs at least manual review. This is a good thing.
Updating packages is often complicated though and those need both manual effort in creation and review.
If you want this to accelerate, please help out at https://github.com/NixOS/nixpkgs/pulls. PR reviews are always helpful, even if you’re not allowed to merge.
New NixOS tests to help automate the review process further are also helpful.

this is traceback
also I disabled all of home manager even import of it, but last error sustain

error: 'libseat' has been renamed to/replaced by 'seatd'

       … while evaluating 'checkInPkgs'

       at /nix/store/lgj2s0xd9x2fv9r1ygb3sn3rh2d59f95-nixos/nixos/pkgs/top-level/aliases.nix:21:20:

           20|   # Make sure that we are not shadowing something from all-packages.nix.
           21|   checkInPkgs = n: alias:
             |                    ^
           22|     if builtins.hasAttr n super

       … from call site

       at /nix/store/lgj2s0xd9x2fv9r1ygb3sn3rh2d59f95-nixos/nixos/pkgs/top-level/aliases.nix:30:12:

           29|         (removeRecurseForDerivations
           30|           (checkInPkgs n alias)))
             |            ^
           31|       aliases;

       … while evaluating 'removeRecurseForDerivations'

       at /nix/store/lgj2s0xd9x2fv9r1ygb3sn3rh2d59f95-nixos/nixos/pkgs/top-level/aliases.nix:8:33:

            7|   # to appear while listing all the packages available.
            8|   removeRecurseForDerivations = alias: with lib;
             |                                 ^
            9|     if alias.recurseForDerivations or false

       … from call site

       at /nix/store/lgj2s0xd9x2fv9r1ygb3sn3rh2d59f95-nixos/nixos/pkgs/top-level/aliases.nix:29:10:

           28|       removeDistribute
           29|         (removeRecurseForDerivations
             |          ^
           30|           (checkInPkgs n alias)))

       … while evaluating 'isDerivation'

       at /nix/store/lgj2s0xd9x2fv9r1ygb3sn3rh2d59f95-nixos/nixos/lib/attrsets.nix:427:18:

          426|   */
          427|   isDerivation = x: x.type or null == "derivation";
             |                  ^
          428|

       … from call site

       at /nix/store/lgj2s0xd9x2fv9r1ygb3sn3rh2d59f95-nixos/nixos/pkgs/top-level/aliases.nix:16:8:

           15|   removeDistribute = alias: with lib;
           16|     if isDerivation alias then
             |        ^
           17|       dontDistribute alias

       … while evaluating 'removeDistribute'

       at /nix/store/lgj2s0xd9x2fv9r1ygb3sn3rh2d59f95-nixos/nixos/pkgs/top-level/aliases.nix:15:22:

           14|   # sets from building on Hydra.
           15|   removeDistribute = alias: with lib;
             |                      ^
           16|     if isDerivation alias then

       … from call site

       at /nix/store/lgj2s0xd9x2fv9r1ygb3sn3rh2d59f95-nixos/nixos/pkgs/top-level/aliases.nix:28:7:

           27|     lib.mapAttrs (n: alias:
           28|       removeDistribute
             |       ^
           29|         (removeRecurseForDerivations

       … while evaluating anonymous lambda

       at /nix/store/lgj2s0xd9x2fv9r1ygb3sn3rh2d59f95-nixos/nixos/pkgs/top-level/aliases.nix:27:22:

           26|   mapAliases = aliases:
           27|     lib.mapAttrs (n: alias:
             |                      ^
           28|       removeDistribute

       … from call site

       … while evaluating 'isDerivation'

       at /nix/store/lgj2s0xd9x2fv9r1ygb3sn3rh2d59f95-nixos/nixos/lib/attrsets.nix:427:18:

          426|   */
          427|   isDerivation = x: x.type or null == "derivation";
             |                  ^
          428|

       … from call site

       at /nix/store/lgj2s0xd9x2fv9r1ygb3sn3rh2d59f95-nixos/nixos/pkgs/stdenv/generic/make-derivation.nix:193:8:

          192|   checkDependencyList' = positions: name: deps: lib.flip lib.imap1 deps (index: dep:
          193|     if lib.isDerivation dep || isNull dep || builtins.typeOf dep == "string" || builtins.typeOf dep == "path" then dep
             |        ^
          194|     else if lib.isList dep then checkDependencyList' ([index] ++ positions) name dep

       … while evaluating anonymous lambda

       at /nix/store/lgj2s0xd9x2fv9r1ygb3sn3rh2d59f95-nixos/nixos/pkgs/stdenv/generic/make-derivation.nix:192:81:

          191|   checkDependencyList = checkDependencyList' [];
          192|   checkDependencyList' = positions: name: deps: lib.flip lib.imap1 deps (index: dep:
             |                                                                                 ^
          193|     if lib.isDerivation dep || isNull dep || builtins.typeOf dep == "string" || builtins.typeOf dep == "path" then dep

       … from call site

       at /nix/store/lgj2s0xd9x2fv9r1ygb3sn3rh2d59f95-nixos/nixos/lib/lists.nix:117:32:

          116|   */
          117|   imap1 = f: list: genList (n: f (n + 1) (elemAt list n)) (length list);
             |                                ^
          118|

       … while evaluating anonymous lambda

       at /nix/store/lgj2s0xd9x2fv9r1ygb3sn3rh2d59f95-nixos/nixos/lib/lists.nix:117:29:

          116|   */
          117|   imap1 = f: list: genList (n: f (n + 1) (elemAt list n)) (length list);
             |                             ^
          118|

       … from call site

       … while evaluating anonymous lambda

       at /nix/store/lgj2s0xd9x2fv9r1ygb3sn3rh2d59f95-nixos/nixos/pkgs/stdenv/generic/make-derivation.nix:221:13:

          220|       (map (drv: drv.__spliced.hostHost or drv) (checkDependencyList "depsHostHost" depsHostHost))
          221|       (map (drv: drv.crossDrv or drv) (checkDependencyList "buildInputs" buildInputs))
             |             ^
          222|     ]

       … from call site

       … while evaluating 'getOutput'

       at /nix/store/lgj2s0xd9x2fv9r1ygb3sn3rh2d59f95-nixos/nixos/lib/attrsets.nix:598:23:

          597|   */
          598|   getOutput = output: pkg:
             |                       ^
          599|     if ! pkg ? outputSpecified || ! pkg.outputSpecified

       … from call site

       … while evaluating the attribute 'buildInputs' of the derivation 'weston-11.0.0'

       at /nix/store/lgj2s0xd9x2fv9r1ygb3sn3rh2d59f95-nixos/nixos/pkgs/stdenv/generic/make-derivation.nix:270:7:

          269|     // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
          270|       name =
             |       ^
          271|         let

       … while evaluating the attribute 'passAsFile'

       at /nix/store/lgj2s0xd9x2fv9r1ygb3sn3rh2d59f95-nixos/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 'system-path'

       at /nix/store/lgj2s0xd9x2fv9r1ygb3sn3rh2d59f95-nixos/nixos/pkgs/stdenv/generic/make-derivation.nix:270:7:

          269|     // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
          270|       name =
             |       ^
          271|         let

       … while evaluating 'check'

       at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/types.nix:480:15:

          479|       name = "path";
          480|       check = x: isCoercibleToString x && builtins.substring 0 1 (toString x) == "/";
             |               ^
          481|       merge = mergeEqualOption;

       … from call site

       at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:749:22:

          748|       if isDefined then
          749|         if all (def: type.check def.value) defsFinal then type.merge loc defsFinal
             |                      ^
          750|         else let allInvalid = filter (def: ! type.check def.value) defsFinal;

       … while evaluating anonymous lambda

       at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:749:17:

          748|       if isDefined then
          749|         if all (def: type.check def.value) defsFinal then type.merge loc defsFinal
             |                 ^
          750|         else let allInvalid = filter (def: ! type.check def.value) defsFinal;

       … from call site

       at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:749:12:

          748|       if isDefined then
          749|         if all (def: type.check def.value) defsFinal then type.merge loc defsFinal
             |            ^
          750|         else let allInvalid = filter (def: ! type.check def.value) defsFinal;

       … while evaluating the attribute 'value'

       at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:760:27:

          759|     optionalValue =
          760|       if isDefined then { value = mergedValue; }
             |                           ^
          761|       else {};

       … while evaluating anonymous lambda

       at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/types.nix:490:14:

          489|       merge = loc: defs:
          490|         map (x: x.value) (filter (x: x ? value) (concatLists (imap1 (n: def:
             |              ^
          491|           imap1 (m: def':

       … from call site

       … while evaluating the attribute 'serviceDirectories' of the derivation 'dbus-1'

       at /nix/store/lgj2s0xd9x2fv9r1ygb3sn3rh2d59f95-nixos/nixos/pkgs/stdenv/generic/make-derivation.nix:270:7:

          269|     // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
          270|       name =
             |       ^
          271|         let

       … while evaluating 'check'

       at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/types.nix:480:15:

          479|       name = "path";
          480|       check = x: isCoercibleToString x && builtins.substring 0 1 (toString x) == "/";
             |               ^
          481|       merge = mergeEqualOption;

       … from call site

       at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:749:22:

          748|       if isDefined then
          749|         if all (def: type.check def.value) defsFinal then type.merge loc defsFinal
             |                      ^
          750|         else let allInvalid = filter (def: ! type.check def.value) defsFinal;

       … while evaluating anonymous lambda

       at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:749:17:

          748|       if isDefined then
          749|         if all (def: type.check def.value) defsFinal then type.merge loc defsFinal
             |                 ^
          750|         else let allInvalid = filter (def: ! type.check def.value) defsFinal;

       … from call site

       at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:749:12:

          748|       if isDefined then
          749|         if all (def: type.check def.value) defsFinal then type.merge loc defsFinal
             |            ^
          750|         else let allInvalid = filter (def: ! type.check def.value) defsFinal;

       … while evaluating the attribute 'mergedValue'

       at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:747:5:

          746|     # Type-check the remaining definitions, and merge them. Or throw if no definitions.
          747|     mergedValue =
             |     ^
          748|       if isDefined then

       … while evaluating the option `environment.etc.dbus-1.source':

       … while evaluating the attribute 'value'

       at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:712:9:

          711|     in warnDeprecation opt //
          712|       { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          713|         inherit (res.defsFinal') highestPrio;

       … while evaluating anonymous lambda

       at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:265:72:

          264|           # For definitions that have an associated option
          265|           declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options;
             |                                                                        ^
          266|

       … from call site

       at /nix/var/nix/profiles/per-user/root/channels/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/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:398:19:

          397|           g =
          398|             name: value:
             |                   ^
          399|             if isAttrs value && cond value

       … from call site

       … while evaluating 'escapeShellArg'

       at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/strings.nix:316:20:

          315|   */
          316|   escapeShellArg = arg: "'${replaceStrings ["'"] ["'\\''"] (toString arg)}'";
             |                    ^
          317|

       … from call site

       … while evaluating 'concatMapStringsSep'

       at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/strings.nix:111:5:

          110|     # List of input strings
          111|     list: concatStringsSep sep (map f list);
             |     ^
          112|

       … from call site

       at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/etc/etc.nix:54:43:

           53|     mkdir -p "$out/etc"
           54|     ${concatMapStringsSep "\n" (etcEntry: escapeShellArgs [
             |                                           ^
           55|       "makeEtcEntry"

       … while evaluating anonymous lambda

       at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/etc/etc.nix:54:33:

           53|     mkdir -p "$out/etc"
           54|     ${concatMapStringsSep "\n" (etcEntry: escapeShellArgs [
             |                                 ^
           55|       "makeEtcEntry"

       … from call site

       … while evaluating 'concatMapStringsSep'

       at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/strings.nix:111:5:

          110|     # List of input strings
          111|     list: concatStringsSep sep (map f list);
             |     ^
          112|

       … from call site

       at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/etc/etc.nix:54:7:

           53|     mkdir -p "$out/etc"
           54|     ${concatMapStringsSep "\n" (etcEntry: escapeShellArgs [
             |       ^
           55|       "makeEtcEntry"

       … while evaluating the attribute 'buildCommand' of the derivation 'etc'

       at /nix/store/lgj2s0xd9x2fv9r1ygb3sn3rh2d59f95-nixos/nixos/pkgs/stdenv/generic/make-derivation.nix:270:7:

          269|     // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
          270|       name =
             |       ^
          271|         let

       … while evaluating the attribute 'value'

       at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:552:44:

          551|       defnsByName' = byName "config" (module: value:
          552|           [{ inherit (module) file; inherit value; }]
             |                                            ^
          553|         ) configs;

       … while evaluating 'atDepth'

       at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:60:17:

           59|       len = length attrPath;
           60|       atDepth = n:
             |                 ^
           61|         if n == len

       … from call site

       at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:63:39:

           62|         then value
           63|         else { ${elemAt attrPath n} = atDepth (n + 1); };
             |                                       ^
           64|     in atDepth 0;

       … while evaluating the attribute 'value'

       at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/types.nix:550:58:

          549|         # Push down position info.
          550|         (map (def: mapAttrs (n: v: { inherit (def) file; value = v; }) def.value) defs);
             |                                                          ^
          551|       emptyValue = { value = {}; };

       … while evaluating 'dischargeProperties'

       at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:799:25:

          798|   */
          799|   dischargeProperties = def:
             |                         ^
          800|     if def._type or "" == "merge" then

       … from call site

       at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:728:137:

          727|         defs' = concatMap (m:
          728|           map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
             |                                                                                                                                         ^
          729|         ) defs;

       … while evaluating definitions from `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/etc/etc.nix':

       … while evaluating anonymous lambda

       at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:727:28:

          726|         # Process mkMerge and mkIf properties.
          727|         defs' = concatMap (m:
             |                            ^
          728|           map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))

       … from call site

       at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:727:17:

          726|         # Process mkMerge and mkIf properties.
          727|         defs' = concatMap (m:
             |                 ^
          728|           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/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:840:7:

          839|     in {
          840|       values = concatMap (def: if getPrio def == highestPrio then [(strip def)] else []) defs;
             |       ^
          841|       inherit highestPrio;

       … while evaluating the attribute 'values'

       at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:741:9:

          740|       in {
          741|         values = defs''';
             |         ^
          742|         inherit (defs'') highestPrio;

       … while evaluating the attribute 'optionalValue.value'

       at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:759:5:

          758|
          759|     optionalValue =
             |     ^
          760|       if isDefined then { value = mergedValue; }

       … while evaluating anonymous lambda

       at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/types.nix:544:29:

          543|       merge = loc: defs:
          544|         zipAttrsWith (name: defs:
             |                             ^
          545|           let merged = mergeDefinitions (loc ++ [name]) elemType defs;

       … from call site

       … while evaluating anonymous lambda

       at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:518:24:

          517|     let f = attrPath:
          518|       zipAttrsWith (n: values:
             |                        ^
          519|         let here = attrPath ++ [n]; in

       … from call site

       … while evaluating the attribute 'value'

       at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:552:44:

          551|       defnsByName' = byName "config" (module: value:
          552|           [{ inherit (module) file; inherit value; }]
             |                                            ^
          553|         ) configs;

       … while evaluating 'dischargeProperties'

       at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:799:25:

          798|   */
          799|   dischargeProperties = def:
             |                         ^
          800|     if def._type or "" == "merge" then

       … from call site

       at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:728:137:

          727|         defs' = concatMap (m:
          728|           map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
             |                                                                                                                                         ^
          729|         ) defs;

       … while evaluating definitions from `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/etc/etc-activation.nix':

       … while evaluating anonymous lambda

       at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:727:28:

          726|         # Process mkMerge and mkIf properties.
          727|         defs' = concatMap (m:
             |                            ^
          728|           map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))

       … from call site

       at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:727:17:

          726|         # Process mkMerge and mkIf properties.
          727|         defs' = concatMap (m:
             |                 ^
          728|           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/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:840:7:

          839|     in {
          840|       values = concatMap (def: if getPrio def == highestPrio then [(strip def)] else []) defs;
             |       ^
          841|       inherit highestPrio;

       … while evaluating the attribute 'values'

       at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:741:9:

          740|       in {
          741|         values = defs''';
             |         ^
          742|         inherit (defs'') highestPrio;

       … while evaluating the attribute 'mergedValue'

       at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:747:5:

          746|     # Type-check the remaining definitions, and merge them. Or throw if no definitions.
          747|     mergedValue =
             |     ^
          748|       if isDefined then

       … while evaluating the option `system.activationScripts.etc.text':

       … while evaluating the attribute 'value'

       at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:712:9:

          711|     in warnDeprecation opt //
          712|       { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          713|         inherit (res.defsFinal') highestPrio;

       … while evaluating anonymous lambda

       at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:265:72:

          264|           # For definitions that have an associated option
          265|           declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options;
             |                                                                        ^
          266|

       … from call site

       at /nix/var/nix/profiles/per-user/root/channels/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/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:398:19:

          397|           g =
          398|             name: value:
             |                   ^
          399|             if isAttrs value && cond value

       … from call site

       … while evaluating the attribute 'text'

       at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/activation/activation-script.nix:9:5:

            8|   addAttributeName = mapAttrs (a: v: v // {
            9|     text = ''
             |     ^
           10|       #### Activation script snippet ${a}:

       … while evaluating 'id'

       at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/trivial.nix:14:5:

           13|     # The value to return
           14|     x: x;
             |     ^
           15|

       … from call site

       … while evaluating 'textClosureMap'

       at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/strings-with-deps.nix:75:35:

           74|
           75|   textClosureMap = f: predefined: names:
             |                                   ^
           76|     concatStringsSep "\n" (map f (textClosureList predefined names));

       … from call site

       at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/activation/activation-script.nix:49:9:

           48|
           49|       ${textClosureMap id (withDrySnippets) (attrNames withDrySnippets)}
             |         ^
           50|

       … while evaluating 'systemActivationScript'

       at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/activation/activation-script.nix:20:33:

           19|
           20|   systemActivationScript = set: onlyDry: let
             |                                 ^
           21|     set' = mapAttrs (_: v: if isString v then (noDepEntry v) // { supportsDryActivation = false; } else v) set;

       … from call site

       at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/activation/activation-script.nix:137:18:

          136|       apply = set: set // {
          137|         script = systemActivationScript set false;
             |                  ^
          138|       };

       … while evaluating the attribute 'system.activationScripts.script'

       at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/activation/activation-script.nix:137:9:

          136|       apply = set: set // {
          137|         script = systemActivationScript set false;
             |         ^
          138|       };

       … while evaluating the attribute 'activationScript' of the derivation 'nixos-system-nixos-aarmn-22.11pre414197.fd54651f5ff'

       at /nix/store/lgj2s0xd9x2fv9r1ygb3sn3rh2d59f95-nixos/nixos/pkgs/stdenv/generic/make-derivation.nix:270:7:

          269|     // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
          270|       name =
             |       ^
          271|         let

the config itself is a bit too long, junky and may contain confidential info (tbh, I’m not sure what, and that’s what discourage me more) like 600+ line of absolute mess

if this traceback can sorta work out I would be happier

Are you mixing packages from different nixpkgs versions? I’m not sure, but I’d expect it to create troubles for such a core change.

Also, you could try to remove half your config and just nixos-rebuild dry-build it (not test / switch) to find which part is making the error, when you find which part, halve it again etc…

1 Like

Isn’t there a non-halving way to find where this error is happening from the traceback? so what is the point of traceback if I cant traceback to problem through it

p.s.: I found it through a deeper look in traceback, weston pkg is causing this problem, I guess sb should report it as malfunctioning,

p.s.:also it would have been nicer if nix could highlight those lines related to out configuration nix (in the middle of traceback) because usually problem happen around there anyway

I don’t really know. I see weston in the traceback, I think it’s a package name related to wayland.

Are you using another input other than nixpkgs? I’m convinced there is a mismatch between two sources that doesn’t mix well, like a wayland repo and nixpkgs repo that aren’t in sync with regard to libseat

2 Likes

Oh yeah, I noticed it just now as well
that problem is now gone, Im sure sth is very wrong with weston on unstable channel

No, I only and only had nixos channel on last run, and ensured it by running nix-channel --list
Its surely a weston nixpkg problem (unstable channel)

I opened a pull request draft for that, I wish it workout well,

back to first issue now

error: builder for '/nix/store/f88b6qmpk9mhahl49p606qc9shg768fy-python3.10-typing-extensions-3.10.0.2.drv' failed with exit code 2
error: 2 dependencies of derivation '/nix/store/vngipha4lh31aw0d66bcgh59qx1mif11-python3.10-setuptools-scm-7.0.5.drv' failed to build
error: 1 dependencies of derivation '/nix/store/kag649a6i0fxcp78bfsdq8sj174h8l7v-python3.10-cachy-0.3.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/wigs2b91jjgqb5k4ziz6qh1mbfjcvp4b-python3.10-certifi-2021.10.8.drv' failed to build
error: 1 dependencies of derivation '/nix/store/p9717qawksq1xv6a0k8l8gq9j22azd2y-python3.10-chardet-4.0.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/11dkcjhbq2icvkzs002gjimfjgdlfb4k-python3.10-distlib-0.3.4.drv' failed to build
error: 1 dependencies of derivation '/nix/store/p90dh60zbwsmnxwaqc0vzakwa2y4b6mz-python3.10-filelock-3.2.1.drv' failed to build
error: 1 dependencies of derivation '/nix/store/wr0kvmx1r42blc5x2gb6ivfqsp8dv5f4-python3.10-idna-2.10.drv' failed to build
error: 1 dependencies of derivation '/nix/store/r2vzzsx1rpm0hkwp1nlq4m91vzrx71wf-python3.10-jeepney-0.7.1.drv' failed to build
error: 1 dependencies of derivation '/nix/store/2ca79ms2wri8zxpvgw1li3nx97c8cr6g-python3.10-lockfile-0.12.2.drv' failed to build
error: 1 dependencies of derivation '/nix/store/41976liy18c9qssz80swjgsils25gqnx-python3.10-msgpack-1.0.4.drv' failed to build
error: 1 dependencies of derivation '/nix/store/f723cjii4zkhvqp4nmxrby5js559cwx6-python3.10-pkginfo-1.8.2.drv' failed to build
error: 1 dependencies of derivation '/nix/store/f7v5m492sph1nswxyaz73hyxy9bv0ssk-python3.10-platformdirs-2.0.2.drv' failed to build
error: 1 dependencies of derivation '/nix/store/ywbn7nd8dwa8npbl29mh2wgcmxbzkj9m-python3.10-poetry-core-1.0.8.drv' failed to build
error: 1 dependencies of derivation '/nix/store/8n0c4jpylkz6xqz5y2lkq8llnyqzn7w6-python3.10-ptyprocess-0.7.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/k8pgdvyc222vc1x7dgc5s6qpl7999mmp-python3.10-pycparser-2.21.drv' failed to build
error: 1 dependencies of derivation '/nix/store/4a858crirfhcjabbymag8p0crmbrs2m7-python3.10-pylev-1.4.0.drv' failed to build
error: 2 dependencies of derivation '/nix/store/7q4m52r1vy23r32vxyl3q8fsp8k0qgxh-python3.10-setuptools-rust-1.5.1.drv' failed to build
error: 1 dependencies of derivation '/nix/store/qzx1wxi4p3vfv98v1gjjsia3prs0ssd9-python3.10-shellingham-1.4.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/zvy47jy8fzym6b54z4bvhmxg4j3h5206-python3.10-urllib3-1.26.9.drv' failed to build
error: 1 dependencies of derivation '/nix/store/j8s2w0diav58snwaqny16m23hhl11sg2-python3.10-webencodings-0.5.1.drv' failed to build
building '/nix/store/h0hhg6rc6clzhw50z01nh2lax94ag77k-udev-rules.drv'...
building '/nix/store/czilllfairqvac6p676zyiz8xyw5csf9-unit-gpg-agent.service.drv'...
building '/nix/store/fz6wljxr672mn3bnwvm1jz15k1afz54v-unit-script-anbox-container-manager-pre-start.drv'...
building '/nix/store/gwmyals15yp5p5h7ag67zvy72qjcr311-unit-systemd-udevd.service.drv'...
building '/nix/store/mgjfliwy871a3dsnzqdfzzgw6wikynnd-unit-waydroid-container.service.drv'...
error: 2 dependencies of derivation '/nix/store/gr3lli4wfn9s7wgiskqf9az2n4cdckpk-python3.10-cffi-1.15.1.drv' failed to build
error: 2 dependencies of derivation '/nix/store/j8q1w6pgayixdviv801zjb9wqnqbffa4-python3.10-crashtest-0.3.1.drv' failed to build
error: 3 dependencies of derivation '/nix/store/mfb3vwlnxpwvsmg1r96qp6i9n2ahwkzc-python3.10-html5lib-1.1.drv' failed to build
error: 2 dependencies of derivation '/nix/store/3fjm0z35xj60p64hp40vbaz5w0cnhq6f-python3.10-pastel-0.2.1.drv' failed to build
error: 2 dependencies of derivation '/nix/store/f37hpvljv1g2if9l4wfvpw14k3axnz48-python3.10-pexpect-4.8.0.drv' failed to build
error: 5 dependencies of derivation '/nix/store/wks0jhsb85xswxnp3lxxl8i2vq6g01mm-python3.10-requests-2.25.1.drv' failed to build
error: 2 dependencies of derivation '/nix/store/vvz0ap4j2dqfghca8ybsa1wvphds8wps-python3.10-tomlkit-0.7.2.drv' failed to build
error: 5 dependencies of derivation '/nix/store/5vfjqkq3m4irl2d1in8lbxgnjqlswvf8-python3.10-virtualenv-20.15.1.drv' failed to build
error: 4 dependencies of derivation '/nix/store/085x6dps3knx156fq63wi66l0nsvw4if-python3.10-cachecontrol-0.12.11.drv' failed to build
error: 5 dependencies of derivation '/nix/store/ag0s043rvcxz57rvz6h7h00dn1pl92wq-python3.10-clikit-0.6.2.drv' failed to build
error: 3 dependencies of derivation '/nix/store/ql5jsw587pdxxbksq3vsn0cxxklzfwdf-python3.10-cryptography-37.0.4.drv' failed to build
error: 2 dependencies of derivation '/nix/store/15pgjis0cp1yzlziv1csarj6sl5h11cb-python3.10-requests-toolbelt-0.9.1.drv' failed to build
error: 3 dependencies of derivation '/nix/store/9nyj7pydpkgsmxpf85fzn2mcgbi1if46-python3.10-cleo-0.8.1.drv' failed to build
error: 3 dependencies of derivation '/nix/store/54zrj2ac82rdhc58j46lhkhizq9nsahn-python3.10-secretstorage-3.3.2.drv' failed to build
error: 4 dependencies of derivation '/nix/store/cfv33w2xc7lxrv3zjbcv75nni1a6phvr-python3.10-keyring-22.3.0.drv' failed to build
error: 16 dependencies of derivation '/nix/store/bvzl52l1maa7yw70cwql3kxnhzf6id57-python3.10-poetry-1.1.14.drv' failed to build
error: 1 dependencies of derivation '/nix/store/b9m7gz29qqab4r7676r5xxc2ycs259xx-python3.10-poetry-1.1.14_fish-completions.drv' failed to build

error: builder for '/nix/store/4s93ccs152sgmrwmgr4wp7py1m73iirf-python3.10-toml-0.10.2.drv' failed with exit code 2


error: 1 dependencies of derivation '/nix/store/5vbjfx9y9mnk19hmhxd189hqzqn6vfy2-man-paths.drv' failed to build
error: 1 dependencies of derivation '/nix/store/zz2mqdz10jglmrhhqnlzc3hir4dhfdk0-system-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/0353rxs3f8g9rgiwp5ns7ln8ma5ic312-dbus-1.drv' failed to build
error: 1 dependencies of derivation '/nix/store/lyxvsz71bsss9sz2hs863jnpisay25ny-man-cache.drv' failed to build
error: 1 dependencies of derivation '/nix/store/ng50p1x9cnab84ksj4h24km1acawzkpz-unit-accounts-daemon.service.drv' failed to build
error: 1 dependencies of derivation '/nix/store/i11bv1ik99iys6pfvibjj5mpkh3wnba1-unit-polkit.service.drv' failed to build
error: 1 dependencies of derivation '/nix/store/kppmis6bzl94bdhls4a91jsnxp134wan-unit-systemd-fsck-.service.drv' failed to build
error: 1 dependencies of derivation '/nix/store/rnkywvrwyqyy7q2ah7if2mbcd4fj2mbi-etc-man_db.conf.drv' failed to build
building '/nix/store/jpmnvpdh17jk82g766iy296473sf6h5s-idea-community-2022.2.1_fish-completions.drv'...
error: 1 dependencies of derivation '/nix/store/26p82c0z5v86y6lnngrrk06dcxq27jv8-unit-dbus.service.drv' failed to build
error: 1 dependencies of derivation '/nix/store/wv3gfrbjh6l23n4lrlqx4wc55a92hi7x-unit-dbus.service.drv' failed to build
error: 4 dependencies of derivation '/nix/store/c32ix7sb059iw0h5ichdyg3b2cfqc6nh-system-units.drv' failed to build
error: 1 dependencies of derivation '/nix/store/cknnrfy0939j6scc7jz73m12d896kfqh-user-units.drv' failed to build
error: 1 dependencies of derivation '/nix/store/y1l56kfjypkyd5x4k4kn6xf87wvwv4ld-system_fish-completions.drv' failed to build
error: 6 dependencies of derivation '/nix/store/awv9xaz24r3privbg307cwmpkgl4whnq-etc.drv' failed to build
error: 2 dependencies of derivation '/nix/store/xgbrwbpgr02wdpdc1jviq65ilmxyqw62-nixos-system-nixos-aarmn-22.11pre414197.fd54651f5ff.drv' failed to build

and this is first issue, any guess?
also should I open a new thread for this? this seems unrelated to first one