Mic92 / nix-fast-build

Combine the power of nix-eval-jobs with nix-output-monitor to speed-up your evaluation and building process.
MIT License
242 stars 12 forks source link

How do I make this work? #71

Closed diniamo closed 3 months ago

diniamo commented 3 months ago

I'm trying to build my system config with this, but it just gets stuck in a loop of throwing errors at me, a lot of them too. Here is an example output that I ran for about 20 seconds.

``` ⏱ 1strace: warning: External use of `lib.modules.applyModuleArgsIfFunction` is deprecated. If your use case isn't covered by non-deprecated functions, we'd like to know more and perhaps support your use case well, instead of providing access to these low level functions. In this case please open an issue in https://github.com/nixos/nixpkgs/issues/. trace: warning: lib.cartesianProductOfSets is a deprecated alias of lib.cartesianProduct. trace: warning: lib.zip is a deprecated alias of lib.zipAttrsWith. trace: warning: lib.zipWithNames is a deprecated alias of lib.zipAttrsWithNames. error: cannot evaluate a function that has an argument without a value ('src') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/sources.nix:73:7: 72| # A path or cleanSourceWith result to filter and/or rename. 73| src, | ^ 74| # Optional with default value: constant true (include everything) trace: warning: lib.crossLists is deprecated, use lib.mapCartesianProduct instead. For example, the following function call: nix-repl> lib.crossLists (x: y: x+y) [[1 2] [3 4]] [ 4 5 5 6 ] Can now be replaced by the following one: nix-repl> lib.mapCartesianProduct ({x,y}: x+y) { x = [1 2]; y = [3 4]; } [ 4 5 5 6 ] error: cannot evaluate a function that has an argument without a value ('newScope') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/customisation.nix:616:7: 615| { splicePackages 616| , newScope | ^ 617| }: error: cannot evaluate a function that has an argument without a value ('derivation') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/derivations.nix:92:7: 91| args@{ 92| derivation, | ^ 93| meta ? null, trace: warning: External use of `lib.modules.dischargeProperties` is deprecated. If your use case isn't covered by non-deprecated functions, we'd like to know more and perhaps support your use case well, instead of providing access to these low level functions. In this case please open an issue in https://github.com/nixos/nixpkgs/issues/. error: cannot evaluate a function that has an argument without a value ('warn') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/modules.nix:1286:5: 1285| # - this may or may not work outside NixOS 1286| warn, | ^ 1287| # A function that is applied to the option value, to form the value error: cannot evaluate a function that has an argument without a value ('modules') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/modules.nix:86:19: 85| evalModules = evalModulesArgs@ 86| { modules | ^ 87| , prefix ? [] trace: warning: External use of `lib.evalOptionValue` is deprecated. If your use case isn't covered by non-deprecated functions, we'd like to know more and perhaps support your use case well, instead of providing access to these low level functions. In this case please open an issue in https://github.com/nixos/nixpkgs/issues/. error: cannot evaluate a function that has an argument without a value ('root') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/fileset/default.nix:427:5: 426| toSource = { 427| root, | ^ 428| fileset, error: … from call site error: function 'packagesFromDirectoryRecursive' called without required argument 'callPackage' at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/filesystem.nix:358:5: 357| packagesFromDirectoryRecursive = 358| { | ^ 359| callPackage, error: cannot evaluate a function that has an argument without a value ('depthLimit') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/generators.nix:428:7: 427| { 428| depthLimit, | ^ 429| throwOnDepthLimit ? true error: cannot evaluate a function that has an argument without a value ('derivation') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/derivations.nix:92:7: 91| args@{ 92| derivation, | ^ 93| meta ? null, error: cannot evaluate a function that has an argument without a value ('startSet') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/deprecated/misc.nix:147:25: 146| 147| lazyGenericClosure = {startSet, operator}: | ^ 148| let trace: warning: lib.crossLists is deprecated, use lib.mapCartesianProduct instead. For example, the following function call: nix-repl> lib.crossLists (x: y: x+y) [[1 2] [3 4]] [ 4 5 5 6 ] Can now be replaced by the following one: nix-repl> lib.mapCartesianProduct ({x,y}: x+y) { x = [1 2]; y = [3 4]; } [ 4 5 5 6 ] trace: warning: lib.literalExample is deprecated, use lib.literalExpression instead, or use lib.literalMD for a non-Nix description. error: cannot evaluate a function that has an argument without a value ('newScope') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/customisation.nix:616:7: 615| { splicePackages 616| , newScope | ^ 617| }: trace: warning: External use of `lib.modules.mergeModules` is deprecated. If your use case isn't covered by non-deprecated functions, we'd like to know more and perhaps support your use case well, instead of providing access to these low level functions. In this case please open an issue in https://github.com/nixos/nixpkgs/issues/. trace: warning: External use of `lib.modules.mergeModules'` is deprecated. If your use case isn't covered by non-deprecated functions, we'd like to know more and perhaps support your use case well, instead of providing access to these low level functions. In this case please open an issue in https://github.com/nixos/nixpkgs/issues/. error: cannot evaluate a function that has an argument without a value ('message') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/options.nix:270:7: 269| mergeUniqueOption = args@{ 270| message, | ^ 271| # WARNING: the default merge function assumes that the definition is a valid (option) value. You MUST pass a merge function if the return value needs to be error: cannot evaluate a function that has an argument without a value ('startSet') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/deprecated/misc.nix:147:25: 146| 147| lazyGenericClosure = {startSet, operator}: | ^ 148| let error: cannot evaluate a function that has an argument without a value ('inputList') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/deprecated/misc.nix:114:16: 113| # This function has O(n^2) performance. 114| uniqList = { inputList, acc ? [] }: | ^ 115| let go = xs: acc: error: cannot evaluate a function that has an argument without a value ('inputList') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/deprecated/misc.nix:123:19: 122| 123| uniqListExt = { inputList, | ^ 124| outputList ? [], trace: warning: lib.mkFixStrictness has no effect and will be removed. It returns its argument unmodified, so you can just remove any calls. error: cannot evaluate a function that has an argument without a value ('name') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/types.nix:117:7: 116| # the type function name. 117| name | ^ 118| , # Description of the type, defined recursively by embedding the wrapped type if any. trace: warning: mkPackageOptionMD is deprecated and will be removed in 25.05; please use mkPackageOption. error: cannot evaluate a function that has an argument without a value ('from') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/modules.nix:1141:5: 1140| /* Old option path as list of strings. */ 1141| from, | ^ 1142| /* New option path as list of strings. */ trace: warning: External use of `lib.modules.applyModuleArgsIfFunction` is deprecated. If your use case isn't covered by non-deprecated functions, we'd like to know more and perhaps support your use case well, instead of providing access to these low level functions. In this case please open an issue in https://github.com/nixos/nixpkgs/issues/. trace: warning: lib.modules.defaultPriority is deprecated, please use lib.modules.defaultOverridePriority instead. trace: warning: External use of `lib.modules.dischargeProperties` is deprecated. If your use case isn't covered by non-deprecated functions, we'd like to know more and perhaps support your use case well, instead of providing access to these low level functions. In this case please open an issue in https://github.com/nixos/nixpkgs/issues/. trace: warning: External use of `lib.modules.collectModules` is deprecated. If your use case isn't covered by non-deprecated functions, we'd like to know more and perhaps support your use case well, instead of providing access to these low level functions. In this case please open an issue in https://github.com/nixos/nixpkgs/issues/. error: cannot evaluate a function that has an argument without a value ('warn') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/modules.nix:1286:5: 1285| # - this may or may not work outside NixOS 1286| warn, | ^ 1287| # A function that is applied to the option value, to form the value error: cannot evaluate a function that has an argument without a value ('modules') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/modules.nix:86:19: 85| evalModules = evalModulesArgs@ 86| { modules | ^ 87| , prefix ? [] trace: warning: lib.mkFixStrictness has no effect and will be removed. It returns its argument unmodified, so you can just remove any calls. trace: warning: External use of `lib.modules.mergeModules'` is deprecated. If your use case isn't covered by non-deprecated functions, we'd like to know more and perhaps support your use case well, instead of providing access to these low level functions. In this case please open an issue in https://github.com/nixos/nixpkgs/issues/. trace: warning: External use of `lib.modules.pushDownProperties` is deprecated. If your use case isn't covered by non-deprecated functions, we'd like to know more and perhaps support your use case well, instead of providing access to these low level functions. In this case please open an issue in https://github.com/nixos/nixpkgs/issues/. trace: warning: External use of `lib.modules.unifyModuleSyntax` is deprecated. If your use case isn't covered by non-deprecated functions, we'd like to know more and perhaps support your use case well, instead of providing access to these low level functions. In this case please open an issue in https://github.com/nixos/nixpkgs/issues/. error: cannot evaluate a function that has an argument without a value ('from') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/modules.nix:1141:5: 1140| /* Old option path as list of strings. */ 1141| from, | ^ 1142| /* New option path as list of strings. */ trace: warning: lib.nixos.evalModules is experimental and subject to change. See nixos/lib/default.nix ⏱ 2strace: warning: lib.nixos.evalModules is experimental and subject to change. See nixos/lib/default.nix trace: warning: lib.nixos.evalModules is experimental and subject to change. See nixos/lib/default.nix trace: warning: lib.nixos.evalModules is experimental and subject to change. See nixos/lib/default.nix trace: warning: lib.nixos.evalModules is experimental and subject to change. See nixos/lib/default.nix trace: warning: lib.nixos.evalModules is experimental and subject to change. See nixos/lib/default.nix trace: warning: lib.nixpkgsVersion is a deprecated alias of lib.version. trace: warning: lib.nixos.evalModules is experimental and subject to change. See nixos/lib/default.nix error: cannot evaluate a function that has an argument without a value ('message') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/options.nix:270:7: 269| mergeUniqueOption = args@{ 270| message, | ^ 271| # WARNING: the default merge function assumes that the definition is a valid (option) value. You MUST pass a merge function if the return value needs to be trace: warning: lib.literalExample is deprecated, use lib.literalExpression instead, or use lib.literalMD for a non-Nix description. trace: warning: lib.nixos.evalModules is experimental and subject to change. See nixos/lib/default.nix trace: warning: lib.nixos.evalModules is experimental and subject to change. See nixos/lib/default.nix trace: warning: lib.nixos.evalModules is experimental and subject to change. See nixos/lib/default.nix trace: warning: lib.nixos.evalModules is experimental and subject to change. See nixos/lib/default.nix trace: warning: lib.nixos.evalModules is experimental and subject to change. See nixos/lib/default.nix error: … from call site error: function 'packagesFromDirectoryRecursive' called without required argument 'callPackage' at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/filesystem.nix:358:5: 357| packagesFromDirectoryRecursive = 358| { | ^ 359| callPackage, trace: warning: lib.nixos.evalModules is experimental and subject to change. See nixos/lib/default.nix trace: warning: lib.nixos.evalModules is experimental and subject to change. See nixos/lib/default.nix trace: warning: lib.nixos.evalModules is experimental and subject to change. See nixos/lib/default.nix trace: warning: lib.nixos.evalModules is experimental and subject to change. See nixos/lib/default.nix trace: warning: lib.nixos.evalModules is experimental and subject to change. See nixos/lib/default.nix trace: warning: lib.nixos.evalModules is experimental and subject to change. See nixos/lib/default.nix trace: warning: lib.nixos.evalModules is experimental and subject to change. See nixos/lib/default.nix trace: warning: lib.nixos.evalModules is experimental and subject to change. See nixos/lib/default.nix trace: warning: lib.nixos.evalModules is experimental and subject to change. See nixos/lib/default.nix trace: warning: lib.nixos.evalModules is experimental and subject to change. See nixos/lib/default.nix trace: warning: lib.nixos.evalModules is experimental and subject to change. See nixos/lib/default.nix trace: warning: lib.nixos.evalModules is experimental and subject to change. See nixos/lib/default.nix trace: warning: mkPackageOptionMD is deprecated and will be removed in 25.05; please use mkPackageOption. trace: warning: lib.nixos.evalModules is experimental and subject to change. See nixos/lib/default.nix trace: warning: lib.nixos.evalModules is experimental and subject to change. See nixos/lib/default.nix trace: warning: lib.nixos.evalModules is experimental and subject to change. See nixos/lib/default.nix error: cannot evaluate a function that has an argument without a value ('modules') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/types.nix:839:9: 838| trace: warning: lib.nixos.evalModules is experimental and subject to change. See nixos/lib/default.nix error: cannot evaluate a function that has an argument without a value ('modules') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/types.nix:839:9: 838| submoduleWith = 839| { modules | ^ 840| , specialArgs ? {} trace: warning: lib.nixos.evalModules is experimental and subject to change. See nixos/lib/default.nix trace: warning: lib.nixos.evalModules is experimental and subject to change. See nixos/lib/default.nix trace: warning: lib.nixos.evalModules is experimental and subject to change. See nixos/lib/default.nix trace: warning: lib.nixos.evalModules is experimental and subject to change. See nixos/lib/default.nix trace: warning: lib.nixos.evalModules is experimental and subject to change. See nixos/lib/default.nix trace: warning: lib.nixos.evalModules is experimental and subject to change. See nixos/lib/default.nix trace: warning: lib.nixos.evalModules is experimental and subject to change. See nixos/lib/default.nix trace: warning: lib.nixos.evalModules is experimental and subject to change. See nixos/lib/default.nix trace: warning: lib.nixos.evalModules is experimental and subject to change. See nixos/lib/default.nix trace: warning: lib.nixos.evalModules is experimental and subject to change. See nixos/lib/default.nix submoduleWith = 839| { modules | ^ 840| , specialArgs ? {} error: cannot evaluate a function that has an argument without a value ('modules') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/types.nix:839:9: 838| submoduleWith = 839| { modules | ^ 840| , specialArgs ? {} error: cannot evaluate a function that has an argument without a value ('modules') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/types.nix:839:9: 838| submoduleWith = 839| { modules | ^ 840| , specialArgs ? {} error: cannot evaluate a function that has an argument without a value ('modules') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/types.nix:839:9: 838| submoduleWith = 839| { modules | ^ 840| , specialArgs ? {} error: cannot evaluate a function that has an argument without a value ('modules') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/types.nix:839:9: 838| submoduleWith = 839| { modules | ^ 840| , specialArgs ? {} error: cannot evaluate a function that has an argument without a value ('modules') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/types.nix:839:9: 838| submoduleWith = 839| { modules | ^ 840| , specialArgs ? {} error: cannot evaluate a function that has an argument without a value ('modules') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/types.nix:839:9: 838| submoduleWith = 839| { modules | ^ 840| , specialArgs ? {} error: cannot evaluate a function that has an argument without a value ('modules') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/types.nix:839:9: 838| submoduleWith = 839| { modules | ^ 840| , specialArgs ? {} error: cannot evaluate a function that has an argument without a value ('modules') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/types.nix:839:9: 838| submoduleWith = 839| { modules | ^ 840| , specialArgs ? {} error: cannot evaluate a function that has an argument without a value ('modules') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/types.nix:839:9: 838| submoduleWith = 839| { modules | ^ 840| , specialArgs ? {} error: cannot evaluate a function that has an argument without a value ('modules') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/types.nix:839:9: 838| submoduleWith = 839| { modules | ^ 840| , specialArgs ? {} error: cannot evaluate a function that has an argument without a value ('modules') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/types.nix:839:9: 838| submoduleWith = 839| { modules | ^ 840| , specialArgs ? {} error: cannot evaluate a function that has an argument without a value ('modules') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/types.nix:839:9: 838| submoduleWith = 839| { modules | ^ 840| , specialArgs ? {} error: cannot evaluate a function that has an argument without a value ('modules') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/types.nix:839:9: 838| submoduleWith = 839| { modules | ^ 840| , specialArgs ? {} error: cannot evaluate a function that has an argument without a value ('modules') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/types.nix:839:9: 838| submoduleWith = 839| { modules | ^ 840| , specialArgs ? {} error: cannot evaluate a function that has an argument without a value ('modules') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/types.nix:839:9: 838| submoduleWith = 839| { modules | ^ 840| , specialArgs ? {} error: cannot evaluate a function that has an argument without a value ('modules') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/types.nix:839:9: 838| submoduleWith = 839| { modules | ^ 840| , specialArgs ? {} error: cannot evaluate a function that has an argument without a value ('modules') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/types.nix:839:9: 838| submoduleWith = 839| { modules | ^ 840| , specialArgs ? {} error: cannot evaluate a function that has an argument without a value ('modules') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/types.nix:839:9: 838| submoduleWith = 839| { modules | ^ 840| , specialArgs ? {} error: cannot evaluate a function that has an argument without a value ('modules') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/types.nix:839:9: 838| submoduleWith = 839| { modules | ^ 840| , specialArgs ? {} ⏱ 3serror: cannot evaluate a function that has an argument without a value ('modules') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/types.nix:839:9: 838| submoduleWith = 839| { modules | ^ 840| , specialArgs ? {} error: cannot evaluate a function that has an argument without a value ('modules') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/types.nix:839:9: 838| submoduleWith = 839| { modules | ^ 840| , specialArgs ? {} error: cannot evaluate a function that has an argument without a value ('modules') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/types.nix:839:9: 838| submoduleWith = 839| { modules | ^ 840| , specialArgs ? {} error: cannot evaluate a function that has an argument without a value ('modules') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/types.nix:839:9: 838| submoduleWith = 839| { modules | ^ 840| , specialArgs ? {} error: cannot evaluate a function that has an argument without a value ('modules') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/types.nix:839:9: 838| submoduleWith = 839| { modules | ^ 840| , specialArgs ? {} error: cannot evaluate a function that has an argument without a value ('modules') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/types.nix:839:9: 838| submoduleWith = 839| { modules | ^ 840| , specialArgs ? {} error: cannot evaluate a function that has an argument without a value ('modules') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/types.nix:839:9: 838| submoduleWith = 839| { modules | ^ 840| , specialArgs ? {} error: cannot evaluate a function that has an argument without a value ('modules') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/types.nix:839:9: 838| submoduleWith = 839| { modules | ^ 840| , specialArgs ? {} error: cannot evaluate a function that has an argument without a value ('modules') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/types.nix:839:9: 838| submoduleWith = 839| { modules | ^ 840| , specialArgs ? {} error: cannot evaluate a function that has an argument without a value ('modules') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/types.nix:839:9: 838| submoduleWith = 839| { modules | ^ 840| , specialArgs ? {} error: cannot evaluate a function that has an argument without a value ('modules') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/types.nix:839:9: 838| submoduleWith = 839| { modules | ^ 840| , specialArgs ? {} error: cannot evaluate a function that has an argument without a value ('modules') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/types.nix:839:9: 838| submoduleWith = 839| { modules | ^ 840| , specialArgs ? {} error: cannot evaluate a function that has an argument without a value ('modules') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/types.nix:839:9: 838| submoduleWith = 839| { modules | ^ 840| , specialArgs ? {} error: cannot evaluate a function that has an argument without a value ('modules') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/types.nix:839:9: 838| submoduleWith = 839| { modules | ^ 840| , specialArgs ? {} error: cannot evaluate a function that has an argument without a value ('modules') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/types.nix:839:9: 838| submoduleWith = 839| { modules | ^ 840| , specialArgs ? {} error: cannot evaluate a function that has an argument without a value ('modules') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/types.nix:839:9: 838| submoduleWith = 839| { modules | ^ 840| , specialArgs ? {} error: cannot evaluate a function that has an argument without a value ('modules') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/types.nix:839:9: 838| submoduleWith = 839| { modules | ^ 840| , specialArgs ? {} error: cannot evaluate a function that has an argument without a value ('modules') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/types.nix:839:9: 838| submoduleWith = 839| { modules | ^ 840| , specialArgs ? {} ⏱ 4serror: cannot evaluate a function that has an argument without a value ('modules') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/types.nix:839:9: 838| submoduleWith = 839| { modules | ^ 840| , specialArgs ? {} error: cannot evaluate a function that has an argument without a value ('modules') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/types.nix:839:9: 838| submoduleWith = 839| { modules | ^ 840| , specialArgs ? {} error: cannot evaluate a function that has an argument without a value ('modules') Nix attempted to evaluate a function as a top level expression; in this case it must have its arguments supplied either by default values, or passed explicitly with '--arg' or '--argstr'. See https://nixos.org/manual/nix/stable/language/constructs.html#functions. at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/types.nix:839:9: 838| submoduleWith = 839| { modules | ^ 840| , specialArgs ? {} trace: Obsolete option `snapraid' is used. It was renamed to `services.snapraid'. ⏱ 8strace: Obsolete option `jobs' is used. It was renamed to `systemd.services'. trace: Obsolete option `snapraid' is used. It was renamed to `services.snapraid'. error: … while evaluating the attribute 'value' at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/modules.nix:821:9: 820| in warnDeprecation opt // 821| { value = addErrorContext "while evaluating the option `${showOption loc}':" value; | ^ 822| inherit (res.defsFinal') highestPrio; … while evaluating the option `passthru': … while evaluating the attribute 'mergedValue' at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/modules.nix:856:5: 855| # Type-check the remaining definitions, and merge them. Or throw if no definitions. 856| mergedValue = | ^ 857| if isDefined then (stack trace truncated; use '--show-trace' to show the full, detailed trace) error: The option `passthru' is used but not defined. ⏱ 9strace: Obsolete option `snapraid' is used. It was renamed to `services.snapraid'. ⏱ 10strace: Obsolete option `jobs' is used. It was renamed to `systemd.services'. ⏱ 11serror: … while calling the 'throw' builtin at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/pkgs/top-level/all-packages.nix:106:36: 105| ### Evaluating the entire Nixpkgs naively will fail, make failure fast 106| AAAAAASomeThingsFailToEvaluate = throw '' | ^ 107| Please be informed that this pseudo-package is not the only part error: Please be informed that this pseudo-package is not the only part of Nixpkgs that fails to evaluate. You should not evaluate entire Nixpkgs without some special measures to handle failing packages, like using pkgs/top-level/release-attrpaths-superset.nix. ⏱ 15s nom hasn‘t detected any input. Have you redirected nix-build stderr into nom? (See -h and the README for details.)trace: Obsolete option `jobs' is used. It was renamed to `systemd.services'. error: … while evaluating the attribute 'value' at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/modules.nix:821:9: 820| in warnDeprecation opt // 821| { value = addErrorContext "while evaluating the option `${showOption loc}':" value; | ^ 822| inherit (res.defsFinal') highestPrio; … while evaluating the option `passthru': … while evaluating the attribute 'mergedValue' at /nix/store/jvpl6r8pjkc17jni8h5qf67mpnbsy1xs-source/lib/modules.nix:856:5: 855| # Type-check the remaining definitions, and merge them. Or throw if no definitions. 856| mergedValue = | ^ 857| if isDefined then (stack trace truncated; use '--show-trace' to show the full, detailed trace) error: The option `passthru' is used but not defined. ⏱ 16s nom hasn‘t detected any input. Have you redirected nix-build stderr into nom? (See -h and the README for details.)trace: Obsolete option `boot.binfmtMiscRegistrations' is used. It was renamed to `boot.binfmt.registrations'. ⏱ 17s nom hasn‘t detected any input. Have you redirected nix-build stderr into nom? (See -h and the README for details.)trace: Obsolete option `boot.copyKernels' is used. It was renamed to `boot.loader.grub.copyKernels'. trace: Obsolete option `boot.cleanTmpDir' is used. It was renamed to `boot.tmp.cleanOnBoot'. ⏱ 18s nom hasn‘t detected any input. Have you redirected nix-build stderr into nom? (See -h and the README for details.)trace: Obsolete option `boot.extraGrubEntries' is used. It was renamed to `boot.loader.grub.extraEntries'. trace: Obsolete option `boot.earlyVconsoleSetup' is used. It was renamed to `console.earlySetup'. ⏱ 19s nom hasn‘t detected any input. Have you redirected nix-build stderr into nom? (See -h and the README for details.)trace: Obsolete option `boot.extraGrubEntriesBeforeNixos' is used. It was renamed to `boot.loader.grub.extraEntriesBeforeNixOS'. ⏱ 21s nom hasn‘t detected any input. Have you redirected nix-build stderr into nom? (See -h and the README for details.)^CINFO:nix_fast_build:nix-fast-build was canceled by the user () Exception ignored in: Traceback (most recent call last): File "/nix/store/z7xxy35k7620hs6fn6la5fg2lgklv72l-python3-3.12.4/lib/python3.12/asyncio/base_subprocess.py", line 126, in __del__ self.close() File "/nix/store/z7xxy35k7620hs6fn6la5fg2lgklv72l-python3-3.12.4/lib/python3.12/asyncio/base_subprocess.py", line 104, in close proto.pipe.close() File "/nix/store/z7xxy35k7620hs6fn6la5fg2lgklv72l-python3-3.12.4/lib/python3.12/asyncio/unix_events.py", line 568, in close self._close(None) File "/nix/store/z7xxy35k7620hs6fn6la5fg2lgklv72l-python3-3.12.4/lib/python3.12/asyncio/unix_events.py", line 592, in _close self._loop.call_soon(self._call_connection_lost, exc) File "/nix/store/z7xxy35k7620hs6fn6la5fg2lgklv72l-python3-3.12.4/lib/python3.12/asyncio/base_events.py", line 795, in call_soon self._check_closed() File "/nix/store/z7xxy35k7620hs6fn6la5fg2lgklv72l-python3-3.12.4/lib/python3.12/asyncio/base_events.py", line 541, in _check_closed raise RuntimeError('Event loop is closed') RuntimeError: Event loop is closed ```
Mic92 commented 3 months ago

You need to build config.system.build.toplevel of your nixos configuration. But I actually don't see much advantage over nix-build for a single derivation because the speed advantage comes with multiple derivations.

Mic92 commented 3 months ago

You can copy this snippet to your flake: https://github.com/Mic92/dotfiles/blob/2a89b32984d8cb5f0655c284098054c432af08ca/flake.nix#L174 than nix-fast-build without arguments will build everything in your flake including nixos.