Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 🚀 ℹ️ [deploy] [INFO] Running checks for flake in .?submodules=1
- warning: unknown flake output 'deploy'
- error:
- … while checking flake output 'nixosConfigurations'
- at /nix/store/g87ja5lizslgwn6z77gcxy82ijvcl8yg-source/flake.nix:76:5:
- 75|
- 76| nixosConfigurations = {
- | ^
- 77| server = nixpkgs.lib.nixosSystem {
- … while checking the NixOS configuration 'nixosConfigurations.server'
- at /nix/store/g87ja5lizslgwn6z77gcxy82ijvcl8yg-source/flake.nix:77:7:
- 76| nixosConfigurations = {
- 77| server = nixpkgs.lib.nixosSystem {
- | ^
- 78| specialArgs = {
- … from call site
- at /nix/store/g87ja5lizslgwn6z77gcxy82ijvcl8yg-source/flake.nix:77:7:
- 76| nixosConfigurations = {
- 77| server = nixpkgs.lib.nixosSystem {
- | ^
- 78| specialArgs = {
- … while calling anonymous lambda
- at /nix/store/rfxbkh3034xxfcl337qp6an9fad7mxlq-source/lib/attrsets.nix:1566:14:
- 1565| zipAttrsWith (
- 1566| n: values:
- | ^
- 1567| let
- … while calling the 'head' builtin
- at /nix/store/rfxbkh3034xxfcl337qp6an9fad7mxlq-source/lib/attrsets.nix:1571:13:
- 1570| if length values == 1 || pred here (elemAt values 1) (head values) then
- 1571| head values
- | ^
- 1572| else
- … while calling anonymous lambda
- at /nix/store/rfxbkh3034xxfcl337qp6an9fad7mxlq-source/lib/attrsets.nix:1182:17:
- 1181| mapAttrs (
- 1182| name: value:
- | ^
- 1183| if isAttrs value && cond value then recurse (path ++ [ name ]) value else f (path ++ [ name ]) value
- … from call site
- at /nix/store/rfxbkh3034xxfcl337qp6an9fad7mxlq-source/lib/attrsets.nix:1183:85:
- 1182| name: value:
- 1183| if isAttrs value && cond value then recurse (path ++ [ name ]) value else f (path ++ [ name ]) value
- | ^
- 1184| );
- … while calling anonymous lambda
- at /nix/store/rfxbkh3034xxfcl337qp6an9fad7mxlq-source/lib/modules.nix:273:71:
- 272| # For definitions that have an associated option
- 273| declaredConfig = mapAttrsRecursiveCond (v: !isOption v) (_: v: v.value) options;
- | ^
- 274|
- … while evaluating the attribute 'value'
- at /nix/store/rfxbkh3034xxfcl337qp6an9fad7mxlq-source/lib/modules.nix:1083:7:
- 1082| // {
- 1083| value = addErrorContext "while evaluating the option `${showOption loc}':" value;
- | ^
- 1084| inherit (res.defsFinal') highestPrio;
- … while calling the 'addErrorContext' builtin
- at /nix/store/rfxbkh3034xxfcl337qp6an9fad7mxlq-source/lib/modules.nix:1083:15:
- 1082| // {
- 1083| value = addErrorContext "while evaluating the option `${showOption loc}':" value;
- | ^
- 1084| inherit (res.defsFinal') highestPrio;
- … while evaluating the option `system.build.toplevel':
- … while evaluating the attribute 'mergedValue'
- at /nix/store/rfxbkh3034xxfcl337qp6an9fad7mxlq-source/lib/modules.nix:1130:5:
- 1129| # Type-check the remaining definitions, and merge them. Or throw if no definitions.
- 1130| mergedValue =
- | ^
- 1131| if isDefined then
- … while evaluating isDefined
- at /nix/store/rfxbkh3034xxfcl337qp6an9fad7mxlq-source/lib/modules.nix:1131:10:
- 1130| mergedValue =
- 1131| if isDefined then
- | ^
- 1132| if all (def: type.check def.value) defsFinal then
- … while evaluating defsFinal
- at /nix/store/rfxbkh3034xxfcl337qp6an9fad7mxlq-source/lib/modules.nix:1145:17:
- 1144|
- 1145| isDefined = defsFinal != [ ];
- | ^
- 1146|
- … while evaluating the attribute 'values'
- at /nix/store/rfxbkh3034xxfcl337qp6an9fad7mxlq-source/lib/modules.nix:1124:9:
- 1123| {
- 1124| values = defs''';
- | ^
- 1125| inherit (defs'') highestPrio;
- … while calling the 'any' builtin
- at /nix/store/rfxbkh3034xxfcl337qp6an9fad7mxlq-source/lib/modules.nix:1118:14:
- 1117| # Avoid sorting if we don't have to.
- 1118| if any (def: def.value._type or "" == "order") defs''.values then
- | ^
- 1119| sortProperties defs''.values
- … while evaluating the attribute 'values'
- at /nix/store/rfxbkh3034xxfcl337qp6an9fad7mxlq-source/lib/modules.nix:1251:7:
- 1250| {
- 1251| values = concatMap (def: if getPrio def == highestPrio then [ (strip def) ] else [ ]) defs;
- | ^
- 1252| inherit highestPrio;
- … while calling the 'concatMap' builtin
- at /nix/store/rfxbkh3034xxfcl337qp6an9fad7mxlq-source/lib/modules.nix:1251:16:
- 1250| {
- 1251| values = concatMap (def: if getPrio def == highestPrio then [ (strip def) ] else [ ]) defs;
- | ^
- 1252| inherit highestPrio;
- … while calling the 'concatMap' builtin
- at /nix/store/rfxbkh3034xxfcl337qp6an9fad7mxlq-source/lib/modules.nix:1098:17:
- 1097| # Process mkMerge and mkIf properties.
- 1098| defs' = concatMap (
- | ^
- 1099| m:
- … while calling anonymous lambda
- at /nix/store/rfxbkh3034xxfcl337qp6an9fad7mxlq-source/lib/modules.nix:1099:11:
- 1098| defs' = concatMap (
- 1099| m:
- | ^
- 1100| map (
- … while calling the 'map' builtin
- at /nix/store/rfxbkh3034xxfcl337qp6an9fad7mxlq-source/lib/modules.nix:1100:11:
- 1099| m:
- 1100| map (
- | ^
- 1101| value:
- … while calling the 'addErrorContext' builtin
- at /nix/store/rfxbkh3034xxfcl337qp6an9fad7mxlq-source/lib/modules.nix:1109:14:
- 1108| }
- 1109| ) (addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
- | ^
- 1110| ) defs;
- … while evaluating definitions from `/nix/store/rfxbkh3034xxfcl337qp6an9fad7mxlq-source/nixos/modules/system/activation/top-level.nix':
- … from call site
- at /nix/store/rfxbkh3034xxfcl337qp6an9fad7mxlq-source/lib/modules.nix:1109:80:
- 1108| }
- 1109| ) (addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
- | ^
- 1110| ) defs;
- … while calling 'dischargeProperties'
- at /nix/store/rfxbkh3034xxfcl337qp6an9fad7mxlq-source/lib/modules.nix:1202:5:
- 1201| dischargeProperties =
- 1202| def:
- | ^
- 1203| if def._type or "" == "merge" then
- … while evaluating an expression to select '_type' on it
- at /nix/store/rfxbkh3034xxfcl337qp6an9fad7mxlq-source/lib/modules.nix:1203:8:
- 1202| def:
- 1203| if def._type or "" == "merge" then
- | ^
- 1204| concatMap dischargeProperties def.contents
- … while evaluating def
- at /nix/store/rfxbkh3034xxfcl337qp6an9fad7mxlq-source/lib/modules.nix:1203:8:
- 1202| def:
- 1203| if def._type or "" == "merge" then
- | ^
- 1204| concatMap dischargeProperties def.contents
- … while evaluating the attribute 'value'
- at /nix/store/rfxbkh3034xxfcl337qp6an9fad7mxlq-source/lib/modules.nix:770:21:
- 769| inherit (module) file;
- 770| inherit value;
- | ^
- 771| }) module.config
- … while evaluating system
- at /nix/store/rfxbkh3034xxfcl337qp6an9fad7mxlq-source/nixos/modules/system/activation/top-level.nix:400:79:
- 399| system.build.toplevel =
- 400| if config.system.includeBuildDependencies then systemWithBuildDeps else system;
- | ^
- 401|
- … while evaluating baseSystemAssertWarn
- at /nix/store/rfxbkh3034xxfcl337qp6an9fad7mxlq-source/nixos/modules/system/activation/top-level.nix:89:7:
- 88| # Avoid IFD if possible, by sidestepping replaceDependencies if no replacements are specified.
- 89| baseSystemAssertWarn
- | ^
- 90| else
- … from call site
- at /nix/store/rfxbkh3034xxfcl337qp6an9fad7mxlq-source/nixos/modules/system/activation/top-level.nix:80:26:
- 79| # Handle assertions and warnings
- 80| baseSystemAssertWarn = lib.asserts.checkAssertWarn config.assertions config.warnings baseSystem;
- | ^
- 81|
- … while calling 'checkAssertWarn'
- at /nix/store/rfxbkh3034xxfcl337qp6an9fad7mxlq-source/lib/asserts.nix:193:27:
- 192| checkAssertWarn =
- 193| assertions: warnings: val:
- | ^
- 194| let
- … while evaluating failedAssertions
- at /nix/store/rfxbkh3034xxfcl337qp6an9fad7mxlq-source/lib/asserts.nix:197:8:
- 196| in
- 197| if failedAssertions != [ ] then
- | ^
- 198| throw "\nFailed assertions:\n${concatStringsSep "\n" (map (x: "- ${x}") failedAssertions)}"
- … while calling the 'map' builtin
- at /nix/store/rfxbkh3034xxfcl337qp6an9fad7mxlq-source/lib/asserts.nix:195:26:
- 194| let
- 195| failedAssertions = map (x: x.message) (filter (x: !x.assertion) assertions);
- | ^
- 196| in
- … while calling the 'filter' builtin
- at /nix/store/rfxbkh3034xxfcl337qp6an9fad7mxlq-source/lib/asserts.nix:195:46:
- 194| let
- 195| failedAssertions = map (x: x.message) (filter (x: !x.assertion) assertions);
- | ^
- 196| in
- … while calling anonymous lambda
- at /nix/store/rfxbkh3034xxfcl337qp6an9fad7mxlq-source/lib/asserts.nix:195:54:
- 194| let
- 195| failedAssertions = map (x: x.message) (filter (x: !x.assertion) assertions);
- | ^
- 196| in
- … while evaluating the attribute 'assertion'
- at /nix/store/rfxbkh3034xxfcl337qp6an9fad7mxlq-source/nixos/modules/services/networking/wireguard.nix:720:13:
- 719| mapAttrs (name: value: {
- 720| assertion = (value.privateKey != null) != (value.privateKeyFile != null);
- | ^
- 721| message = "Either networking.wireguard.interfaces.${name}.privateKey or networking.wireguard.interfaces.${name}.privateKeyFile must be set.";
- … from call site
- at /nix/store/rfxbkh3034xxfcl337qp6an9fad7mxlq-source/nixos/modules/services/networking/wireguard.nix:720:62:
- 719| mapAttrs (name: value: {
- 720| assertion = (value.privateKey != null) != (value.privateKeyFile != null);
- | ^
- 721| message = "Either networking.wireguard.interfaces.${name}.privateKey or networking.wireguard.interfaces.${name}.privateKeyFile must be set.";
- … while calling anonymous lambda
- at /nix/store/rfxbkh3034xxfcl337qp6an9fad7mxlq-source/lib/attrsets.nix:1182:17:
- 1181| mapAttrs (
- 1182| name: value:
- | ^
- 1183| if isAttrs value && cond value then recurse (path ++ [ name ]) value else f (path ++ [ name ]) value
- … from call site
- at /nix/store/rfxbkh3034xxfcl337qp6an9fad7mxlq-source/lib/attrsets.nix:1183:85:
- 1182| name: value:
- 1183| if isAttrs value && cond value then recurse (path ++ [ name ]) value else f (path ++ [ name ]) value
- | ^
- 1184| );
- … while calling anonymous lambda
- at /nix/store/rfxbkh3034xxfcl337qp6an9fad7mxlq-source/lib/modules.nix:273:71:
- 272| # For definitions that have an associated option
- 273| declaredConfig = mapAttrsRecursiveCond (v: !isOption v) (_: v: v.value) options;
- | ^
- 274|
- … while evaluating the attribute 'value'
- at /nix/store/rfxbkh3034xxfcl337qp6an9fad7mxlq-source/lib/modules.nix:1083:7:
- 1082| // {
- 1083| value = addErrorContext "while evaluating the option `${showOption loc}':" value;
- | ^
- 1084| inherit (res.defsFinal') highestPrio;
- … while calling the 'addErrorContext' builtin
- at /nix/store/rfxbkh3034xxfcl337qp6an9fad7mxlq-source/lib/modules.nix:1083:15:
- 1082| // {
- 1083| value = addErrorContext "while evaluating the option `${showOption loc}':" value;
- | ^
- 1084| inherit (res.defsFinal') highestPrio;
- … while evaluating the option `networking.wireguard.interfaces.wg0.privateKeyFile':
- (11 duplicate frames omitted)
- … while evaluating definitions from `/nix/store/g87ja5lizslgwn6z77gcxy82ijvcl8yg-source/modules/wireguard/wireguard.nix':
- … from call site
- at /nix/store/rfxbkh3034xxfcl337qp6an9fad7mxlq-source/lib/modules.nix:1109:80:
- 1108| }
- 1109| ) (addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
- | ^
- 1110| ) defs;
- … while calling 'dischargeProperties'
- at /nix/store/rfxbkh3034xxfcl337qp6an9fad7mxlq-source/lib/modules.nix:1202:5:
- 1201| dischargeProperties =
- 1202| def:
- | ^
- 1203| if def._type or "" == "merge" then
- … while evaluating an expression to select '_type' on it
- at /nix/store/rfxbkh3034xxfcl337qp6an9fad7mxlq-source/lib/modules.nix:1203:8:
- 1202| def:
- 1203| if def._type or "" == "merge" then
- | ^
- 1204| concatMap dischargeProperties def.contents
- … while evaluating def
- at /nix/store/rfxbkh3034xxfcl337qp6an9fad7mxlq-source/lib/modules.nix:1203:8:
- 1202| def:
- 1203| if def._type or "" == "merge" then
- | ^
- 1204| concatMap dischargeProperties def.contents
- … while evaluating the attribute 'value'
- at /nix/store/rfxbkh3034xxfcl337qp6an9fad7mxlq-source/lib/modules.nix:770:21:
- 769| inherit (module) file;
- 770| inherit value;
- | ^
- 771| }) module.config
- … while evaluating an expression to select 'wg_private_key' on it
- at /nix/store/g87ja5lizslgwn6z77gcxy82ijvcl8yg-source/modules/wireguard/wireguard.nix:18:37:
- 17| ips = "${vars.wg_ips}";
- 18| privateKeyFile = "${vars.wg_private_key}";
- | ^
- 19| mtu = 1420;
- … while evaluating vars
- at /nix/store/g87ja5lizslgwn6z77gcxy82ijvcl8yg-source/modules/wireguard/wireguard.nix:18:37:
- 17| ips = "${vars.wg_ips}";
- 18| privateKeyFile = "${vars.wg_private_key}";
- | ^
- 19| mtu = 1420;
- … from call site
- at /nix/store/g87ja5lizslgwn6z77gcxy82ijvcl8yg-source/modules/wireguard/wireguard.nix:18:37:
- 17| ips = "${vars.wg_ips}";
- 18| privateKeyFile = "${vars.wg_private_key}";
- | ^
- 19| mtu = 1420;
- … while calling anonymous lambda
- at /nix/store/rfxbkh3034xxfcl337qp6an9fad7mxlq-source/lib/modules.nix:652:15:
- 651| extraArgs = mapAttrs (
- 652| name: _: addErrorContext (context name) (args.${name} or config._module.args.${name})
- | ^
- 653| ) (functionArgs f);
- … while calling the 'addErrorContext' builtin
- at /nix/store/rfxbkh3034xxfcl337qp6an9fad7mxlq-source/lib/modules.nix:652:18:
- 651| extraArgs = mapAttrs (
- 652| name: _: addErrorContext (context name) (args.${name} or config._module.args.${name})
- | ^
- 653| ) (functionArgs f);
- … while evaluating the module argument `vars' in "/nix/store/g87ja5lizslgwn6z77gcxy82ijvcl8yg-source/modules/wireguard/wireguard.nix":
- … while evaluating the attribute 'vars'
- at /nix/store/g87ja5lizslgwn6z77gcxy82ijvcl8yg-source/flake.nix:80:11:
- 79| inherit inputs;
- 80| vars = import ./hosts/server/vars.nix;
- | ^
- 81| };
- … while calling the 'import' builtin
- at /nix/store/g87ja5lizslgwn6z77gcxy82ijvcl8yg-source/flake.nix:80:18:
- 79| inherit inputs;
- 80| vars = import ./hosts/server/vars.nix;
- | ^
- 81| };
- error: undefined variable 'config'
- at /nix/store/g87ja5lizslgwn6z77gcxy82ijvcl8yg-source/hosts/server/vars.nix:6:22:
- 5| wg_ips = ["10.11.12.4/32"];
- 6| wg_private_key = config.sops.secrets.wireguard.private_key.path;
- | ^
- 7| wg_preshared_key = config.sops.secrets.wireguard.preshared_key.path;
- 🚀 ❌ [deploy] [ERROR] Failed to check deployment: Nix checking command resulted in a bad exit code: Some(1)
Advertisement
Add Comment
Please, Sign In to add comment