Last active
November 2, 2024 21:36
-
-
Save al3xtjames/3f716ab5243455dfd965ebbf6f34c8cb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
outputs = { self, nixpkgs }: { | |
nixosConfigurations.seisho = nixpkgs.lib.nixosSystem { | |
modules = [ | |
({ config, lib, ... }: { | |
nixpkgs.hostPlatform = "x86_64-linux"; | |
services.openssh.enable = true; | |
users = { | |
groups.wheel.members = [ "karen" ]; | |
users = { | |
karen = { }; | |
root.openssh.authorizedKeys.keys = lib.concatMap | |
(user: config.users.users."${user}".openssh.authorizedKeys.keys) | |
config.users.groups.wheel.members; | |
}; | |
}; | |
}) | |
]; | |
}; | |
}; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
building the system configuration... | |
warning: not writing modified lock file of flake 'git+https://gist.github.com/al3xtjames/3f716ab5243455dfd965ebbf6f34c8cb': | |
• Added input 'nixpkgs': | |
'github:NixOS/nixpkgs/19a494135aef450171149a6c328375fb3d96947a?narHash=sha256-H7fcl1VElBE6WGDKvv5yM1bzYHqwIEYTL1rcoDUEofQ%3D' (2024-09-15) | |
evaluation warning: system.stateVersion is not set, defaulting to 24.11. Read why this matters on https://nixos.org/manual/nixos/stable/options.html#opt-system.stateVersion. | |
error: | |
… while calling anonymous lambda | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/attrsets.nix:1571:24: | |
1570| let f = attrPath: | |
1571| zipAttrsWith (n: values: | |
| ^ | |
1572| let here = attrPath ++ [n]; in | |
… while calling the 'head' builtin | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/attrsets.nix:1575:11: | |
1574| || pred here (elemAt values 1) (head values) then | |
1575| head values | |
| ^ | |
1576| else | |
… while calling anonymous lambda | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/attrsets.nix:1205:18: | |
1204| mapAttrs | |
1205| (name: value: | |
| ^ | |
1206| if isAttrs value && cond value | |
… from call site | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/attrsets.nix:1208:18: | |
1207| then recurse (path ++ [ name ]) value | |
1208| else f (path ++ [ name ]) value); | |
| ^ | |
1209| in | |
… while calling anonymous lambda | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:254:72: | |
253| # For definitions that have an associated option | |
254| declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options; | |
| ^ | |
255| | |
… while evaluating the attribute 'value' | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-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 `system.build.toplevel': | |
… while evaluating the attribute 'mergedValue' | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-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 | |
… while evaluating a branch condition | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:857:7: | |
856| mergedValue = | |
857| if isDefined then | |
| ^ | |
858| if all (def: type.check def.value) defsFinal then type.merge loc defsFinal | |
… while evaluating the attribute 'values' | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:850:9: | |
849| in { | |
850| values = defs'''; | |
| ^ | |
851| inherit (defs'') highestPrio; | |
… while evaluating a branch condition | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:846:11: | |
845| # Avoid sorting if we don't have to. | |
846| if any (def: def.value._type or "" == "order") defs''.values | |
| ^ | |
847| then sortProperties defs''.values | |
… while calling the 'any' builtin | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:846:14: | |
845| # Avoid sorting if we don't have to. | |
846| if any (def: def.value._type or "" == "order") defs''.values | |
| ^ | |
847| then sortProperties defs''.values | |
… while evaluating the attribute 'values' | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:949:7: | |
948| in { | |
949| values = concatMap (def: if getPrio def == highestPrio then [(strip def)] else []) defs; | |
| ^ | |
950| inherit highestPrio; | |
… while calling the 'concatMap' builtin | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:949:16: | |
948| in { | |
949| values = concatMap (def: if getPrio def == highestPrio then [(strip def)] else []) defs; | |
| ^ | |
950| inherit highestPrio; | |
… while calling the 'concatMap' builtin | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:836:17: | |
835| # Process mkMerge and mkIf properties. | |
836| defs' = concatMap (m: | |
| ^ | |
837| map (value: { inherit (m) file; inherit value; }) (addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value)) | |
… while calling anonymous lambda | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:836:28: | |
835| # Process mkMerge and mkIf properties. | |
836| defs' = concatMap (m: | |
| ^ | |
837| map (value: { inherit (m) file; inherit value; }) (addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value)) | |
… while calling the 'map' builtin | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:837:11: | |
836| defs' = concatMap (m: | |
837| map (value: { inherit (m) file; inherit value; }) (addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value)) | |
| ^ | |
838| ) defs; | |
… while evaluating definitions from `/nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/nixos/modules/system/activation/top-level.nix': | |
… from call site | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:837:128: | |
836| defs' = concatMap (m: | |
837| map (value: { inherit (m) file; inherit value; }) (addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value)) | |
| ^ | |
838| ) defs; | |
… while calling 'dischargeProperties' | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:908:25: | |
907| */ | |
908| dischargeProperties = def: | |
| ^ | |
909| if def._type or "" == "merge" then | |
… while evaluating a branch condition | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:909:5: | |
908| dischargeProperties = def: | |
909| if def._type or "" == "merge" then | |
| ^ | |
910| concatMap dischargeProperties def.contents | |
… while evaluating the attribute 'value' | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:619:53: | |
618| (n: value: | |
619| [{ inherit (module) file; inherit value; }] | |
| ^ | |
620| ) | |
… from call site | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/nixos/modules/system/activation/top-level.nix:71:12: | |
70| # Replace runtime dependencies | |
71| system = foldr ({ oldDependency, newDependency }: drv: | |
| ^ | |
72| pkgs.replaceDependency { inherit oldDependency newDependency drv; } | |
… while calling 'foldr' | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/lists.nix:121:20: | |
120| */ | |
121| foldr = op: nul: list: | |
| ^ | |
122| let | |
… from call site | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/lists.nix:128:8: | |
127| else op (elemAt list n) (fold' (n + 1)); | |
128| in fold' 0; | |
| ^ | |
129| | |
… while calling 'fold'' | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/lists.nix:124:15: | |
123| len = length list; | |
124| fold' = n: | |
| ^ | |
125| if n == len | |
… while evaluating a branch condition | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/nixos/modules/system/activation/top-level.nix:66:26: | |
65| | |
66| baseSystemAssertWarn = if failedAssertions != [] | |
| ^ | |
67| then throw "\nFailed assertions:\n${concatStringsSep "\n" (map (x: "- ${x}") failedAssertions)}" | |
… while calling the 'map' builtin | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/nixos/modules/system/activation/top-level.nix:64:22: | |
63| | |
64| failedAssertions = map (x: x.message) (filter (x: !x.assertion) config.assertions); | |
| ^ | |
65| | |
… while calling the 'filter' builtin | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/nixos/modules/system/activation/top-level.nix:64:42: | |
63| | |
64| failedAssertions = map (x: x.message) (filter (x: !x.assertion) config.assertions); | |
| ^ | |
65| | |
… from call site | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/nixos/modules/system/activation/top-level.nix:64:67: | |
63| | |
64| failedAssertions = map (x: x.message) (filter (x: !x.assertion) config.assertions); | |
| ^ | |
65| | |
… while calling anonymous lambda | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/attrsets.nix:1205:18: | |
1204| mapAttrs | |
1205| (name: value: | |
| ^ | |
1206| if isAttrs value && cond value | |
… from call site | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/attrsets.nix:1208:18: | |
1207| then recurse (path ++ [ name ]) value | |
1208| else f (path ++ [ name ]) value); | |
| ^ | |
1209| in | |
… while calling anonymous lambda | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:254:72: | |
253| # For definitions that have an associated option | |
254| declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options; | |
| ^ | |
255| | |
… while evaluating the attribute 'value' | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-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 `assertions': | |
(10 duplicate frames omitted) | |
… while evaluating definitions from `/nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/nixos/modules/system/boot/systemd.nix': | |
… from call site | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:837:128: | |
836| defs' = concatMap (m: | |
837| map (value: { inherit (m) file; inherit value; }) (addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value)) | |
| ^ | |
838| ) defs; | |
… while calling 'dischargeProperties' | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:908:25: | |
907| */ | |
908| dischargeProperties = def: | |
| ^ | |
909| if def._type or "" == "merge" then | |
… while evaluating a branch condition | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:909:5: | |
908| dischargeProperties = def: | |
909| if def._type or "" == "merge" then | |
| ^ | |
910| concatMap dischargeProperties def.contents | |
… while evaluating the attribute 'value' | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:619:53: | |
618| (n: value: | |
619| [{ inherit (module) file; inherit value; }] | |
| ^ | |
620| ) | |
… while calling the 'concatLists' builtin | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/nixos/modules/system/boot/systemd.nix:477:18: | |
476| | |
477| assertions = concatLists ( | |
| ^ | |
478| mapAttrsToList | |
… from call site | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/nixos/modules/system/boot/systemd.nix:478:7: | |
477| assertions = concatLists ( | |
478| mapAttrsToList | |
| ^ | |
479| (name: service: | |
… while calling 'mapAttrsToList' | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/attrsets.nix:1095:5: | |
1094| f: | |
1095| attrs: | |
| ^ | |
1096| map (name: f name attrs.${name}) (attrNames attrs); | |
… while calling the 'map' builtin | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/attrsets.nix:1096:5: | |
1095| attrs: | |
1096| map (name: f name attrs.${name}) (attrNames attrs); | |
| ^ | |
1097| | |
… while calling the 'attrNames' builtin | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/attrsets.nix:1096:39: | |
1095| attrs: | |
1096| map (name: f name attrs.${name}) (attrNames attrs); | |
| ^ | |
1097| | |
… from call site | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/nixos/modules/system/boot/systemd.nix:489:9: | |
488| ) | |
489| cfg.services | |
| ^ | |
490| ); | |
… while calling anonymous lambda | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/attrsets.nix:1205:18: | |
1204| mapAttrs | |
1205| (name: value: | |
| ^ | |
1206| if isAttrs value && cond value | |
… from call site | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/attrsets.nix:1208:18: | |
1207| then recurse (path ++ [ name ]) value | |
1208| else f (path ++ [ name ]) value); | |
| ^ | |
1209| in | |
… while calling anonymous lambda | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:254:72: | |
253| # For definitions that have an associated option | |
254| declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options; | |
| ^ | |
255| | |
… while evaluating the attribute 'value' | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-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 `systemd.services': | |
(10 duplicate frames omitted) | |
… while evaluating definitions from `/nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/nixos/modules/services/logging/logrotate.nix': | |
… from call site | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:837:128: | |
836| defs' = concatMap (m: | |
837| map (value: { inherit (m) file; inherit value; }) (addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value)) | |
| ^ | |
838| ) defs; | |
… while calling 'dischargeProperties' | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:908:25: | |
907| */ | |
908| dischargeProperties = def: | |
| ^ | |
909| if def._type or "" == "merge" then | |
… while evaluating a branch condition | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:912:7: | |
911| else if def._type or "" == "if" then | |
912| if isBool def.condition then | |
| ^ | |
913| if def.condition then | |
… while calling the 'isBool' builtin | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:912:10: | |
911| else if def._type or "" == "if" then | |
912| if isBool def.condition then | |
| ^ | |
913| if def.condition then | |
… while evaluating the attribute 'condition' | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:1013:15: | |
1012| { _type = "if"; | |
1013| inherit condition content; | |
| ^ | |
1014| }; | |
… while evaluating the attribute 'condition' | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:1013:15: | |
1012| { _type = "if"; | |
1013| inherit condition content; | |
| ^ | |
1014| }; | |
… while evaluating the attribute 'condition' | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:1013:15: | |
1012| { _type = "if"; | |
1013| inherit condition content; | |
| ^ | |
1014| }; | |
… from call site | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/nixos/modules/services/logging/logrotate.nix:240:21: | |
239| | |
240| config = lib.mkIf cfg.enable { | |
| ^ | |
241| systemd.services.logrotate = { | |
… while calling anonymous lambda | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/attrsets.nix:1205:18: | |
1204| mapAttrs | |
1205| (name: value: | |
| ^ | |
1206| if isAttrs value && cond value | |
… from call site | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/attrsets.nix:1208:18: | |
1207| then recurse (path ++ [ name ]) value | |
1208| else f (path ++ [ name ]) value); | |
| ^ | |
1209| in | |
… while calling anonymous lambda | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:254:72: | |
253| # For definitions that have an associated option | |
254| declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options; | |
| ^ | |
255| | |
… while evaluating the attribute 'value' | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-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 `services.logrotate.enable': | |
… while evaluating the attribute 'mergedValue' | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-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 | |
… while evaluating a branch condition | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:857:7: | |
856| mergedValue = | |
857| if isDefined then | |
| ^ | |
858| if all (def: type.check def.value) defsFinal then type.merge loc defsFinal | |
… while evaluating the attribute 'values' | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:850:9: | |
849| in { | |
850| values = defs'''; | |
| ^ | |
851| inherit (defs'') highestPrio; | |
… while evaluating a branch condition | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:846:11: | |
845| # Avoid sorting if we don't have to. | |
846| if any (def: def.value._type or "" == "order") defs''.values | |
| ^ | |
847| then sortProperties defs''.values | |
… while calling the 'any' builtin | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:846:14: | |
845| # Avoid sorting if we don't have to. | |
846| if any (def: def.value._type or "" == "order") defs''.values | |
| ^ | |
847| then sortProperties defs''.values | |
… while calling anonymous lambda | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:846:19: | |
845| # Avoid sorting if we don't have to. | |
846| if any (def: def.value._type or "" == "order") defs''.values | |
| ^ | |
847| then sortProperties defs''.values | |
… while evaluating the attribute 'value._type' | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:947:73: | |
946| highestPrio = foldl' (prio: def: min (getPrio def) prio) 9999 defs; | |
947| strip = def: if def.value._type or "" == "override" then def // { value = def.value.content; } else def; | |
| ^ | |
948| in { | |
… while evaluating the attribute 'value.content' | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:1028:24: | |
1027| { _type = "override"; | |
1028| inherit priority content; | |
| ^ | |
1029| }; | |
… while evaluating the attribute 'default' | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/nixos/modules/services/logging/logrotate.nix:96:9: | |
95| enable = lib.mkEnableOption "the logrotate systemd service" // { | |
96| default = lib.foldr (n: a: a || n.enable) false (lib.attrValues cfg.settings); | |
| ^ | |
97| defaultText = lib.literalExpression "cfg.settings != {}"; | |
… from call site | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/nixos/modules/services/logging/logrotate.nix:96:19: | |
95| enable = lib.mkEnableOption "the logrotate systemd service" // { | |
96| default = lib.foldr (n: a: a || n.enable) false (lib.attrValues cfg.settings); | |
| ^ | |
97| defaultText = lib.literalExpression "cfg.settings != {}"; | |
… while calling 'foldr' | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/lists.nix:121:20: | |
120| */ | |
121| foldr = op: nul: list: | |
| ^ | |
122| let | |
… from call site | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/lists.nix:128:8: | |
127| else op (elemAt list n) (fold' (n + 1)); | |
128| in fold' 0; | |
| ^ | |
129| | |
… while calling 'fold'' | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/lists.nix:124:15: | |
123| len = length list; | |
124| fold' = n: | |
| ^ | |
125| if n == len | |
… from call site | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/lists.nix:127:14: | |
126| then nul | |
127| else op (elemAt list n) (fold' (n + 1)); | |
| ^ | |
128| in fold' 0; | |
… while calling anonymous lambda | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/nixos/modules/services/logging/logrotate.nix:96:33: | |
95| enable = lib.mkEnableOption "the logrotate systemd service" // { | |
96| default = lib.foldr (n: a: a || n.enable) false (lib.attrValues cfg.settings); | |
| ^ | |
97| defaultText = lib.literalExpression "cfg.settings != {}"; | |
… in the left operand of the OR (||) operator | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/nixos/modules/services/logging/logrotate.nix:96:38: | |
95| enable = lib.mkEnableOption "the logrotate systemd service" // { | |
96| default = lib.foldr (n: a: a || n.enable) false (lib.attrValues cfg.settings); | |
| ^ | |
97| defaultText = lib.literalExpression "cfg.settings != {}"; | |
… from call site | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/lists.nix:127:34: | |
126| then nul | |
127| else op (elemAt list n) (fold' (n + 1)); | |
| ^ | |
128| in fold' 0; | |
… while calling 'fold'' | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/lists.nix:124:15: | |
123| len = length list; | |
124| fold' = n: | |
| ^ | |
125| if n == len | |
… from call site | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/lists.nix:127:14: | |
126| then nul | |
127| else op (elemAt list n) (fold' (n + 1)); | |
| ^ | |
128| in fold' 0; | |
… while calling anonymous lambda | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/nixos/modules/services/logging/logrotate.nix:96:33: | |
95| enable = lib.mkEnableOption "the logrotate systemd service" // { | |
96| default = lib.foldr (n: a: a || n.enable) false (lib.attrValues cfg.settings); | |
| ^ | |
97| defaultText = lib.literalExpression "cfg.settings != {}"; | |
… in the right operand of the OR (||) operator | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/nixos/modules/services/logging/logrotate.nix:96:38: | |
95| enable = lib.mkEnableOption "the logrotate systemd service" // { | |
96| default = lib.foldr (n: a: a || n.enable) false (lib.attrValues cfg.settings); | |
| ^ | |
97| defaultText = lib.literalExpression "cfg.settings != {}"; | |
… while calling the 'elemAt' builtin | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/lists.nix:127:18: | |
126| then nul | |
127| else op (elemAt list n) (fold' (n + 1)); | |
| ^ | |
128| in fold' 0; | |
… while calling anonymous lambda | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/types.nix:583:22: | |
582| merge = loc: defs: | |
583| mapAttrs (n: v: v.value) (filterAttrs (n: v: v ? value) (zipAttrsWith (name: defs: | |
| ^ | |
584| (mergeDefinitions (loc ++ [name]) elemType defs).optionalValue | |
… while evaluating the attribute 'value' | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:869:27: | |
868| optionalValue = | |
869| if isDefined then { value = mergedValue; } | |
| ^ | |
870| else {}; | |
… from call site | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:858:59: | |
857| if isDefined then | |
858| if all (def: type.check def.value) defsFinal then type.merge loc defsFinal | |
| ^ | |
859| else let allInvalid = filter (def: ! type.check def.value) defsFinal; | |
… while calling 'merge' | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/types.nix:887:22: | |
886| check = x: isAttrs x || isFunction x || path.check x; | |
887| merge = loc: defs: | |
| ^ | |
888| (base.extendModules { | |
… while evaluating the attribute 'config' | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:334:9: | |
333| options = checked options; | |
334| config = checked (removeAttrs config [ "_module" ]); | |
| ^ | |
335| _module = checked (config._module); | |
… while calling the 'seq' builtin | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:334:18: | |
333| options = checked options; | |
334| config = checked (removeAttrs config [ "_module" ]); | |
| ^ | |
335| _module = checked (config._module); | |
… while evaluating a branch condition | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:273:9: | |
272| checkUnmatched = | |
273| if config._module.check && config._module.freeformType == null && merged.unmatchedDefns != [] then | |
| ^ | |
274| let | |
… in the left operand of the AND (&&) operator | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:273:72: | |
272| checkUnmatched = | |
273| if config._module.check && config._module.freeformType == null && merged.unmatchedDefns != [] then | |
| ^ | |
274| let | |
… in the left operand of the AND (&&) operator | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:273:33: | |
272| checkUnmatched = | |
273| if config._module.check && config._module.freeformType == null && merged.unmatchedDefns != [] then | |
| ^ | |
274| let | |
… from call site | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:270:16: | |
269| # paths, meaning recursiveUpdate will never override any value | |
270| else recursiveUpdate freeformConfig declaredConfig; | |
| ^ | |
271| | |
… while calling 'recursiveUpdate' | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/attrsets.nix:1627:5: | |
1626| lhs: | |
1627| rhs: | |
| ^ | |
1628| recursiveUpdateUntil (path: lhs: rhs: !(isAttrs lhs && isAttrs rhs)) lhs rhs; | |
… from call site | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/attrsets.nix:1628:5: | |
1627| rhs: | |
1628| recursiveUpdateUntil (path: lhs: rhs: !(isAttrs lhs && isAttrs rhs)) lhs rhs; | |
| ^ | |
1629| | |
… while calling 'recursiveUpdateUntil' | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/attrsets.nix:1569:5: | |
1568| lhs: | |
1569| rhs: | |
| ^ | |
1570| let f = attrPath: | |
… while calling the 'zipAttrsWith' builtin | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/attrsets.nix:1579:8: | |
1578| ); | |
1579| in f [] [rhs lhs]; | |
| ^ | |
1580| | |
… from call site | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:264:18: | |
263| in if defs == [] then {} | |
264| else declaredConfig._module.freeformType.merge prefix defs; | |
| ^ | |
265| | |
… while calling 'merge' | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/types.nix:582:20: | |
581| check = isAttrs; | |
582| merge = loc: defs: | |
| ^ | |
583| mapAttrs (n: v: v.value) (filterAttrs (n: v: v ? value) (zipAttrsWith (name: defs: | |
… while calling the 'mapAttrs' builtin | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/types.nix:583:9: | |
582| merge = loc: defs: | |
583| mapAttrs (n: v: v.value) (filterAttrs (n: v: v ? value) (zipAttrsWith (name: defs: | |
| ^ | |
584| (mergeDefinitions (loc ++ [name]) elemType defs).optionalValue | |
… from call site | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/types.nix:583:35: | |
582| merge = loc: defs: | |
583| mapAttrs (n: v: v.value) (filterAttrs (n: v: v ? value) (zipAttrsWith (name: defs: | |
| ^ | |
584| (mergeDefinitions (loc ++ [name]) elemType defs).optionalValue | |
… while calling 'filterAttrs' | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/attrsets.nix:646:5: | |
645| pred: | |
646| set: | |
| ^ | |
647| listToAttrs (concatMap (name: let v = set.${name}; in if pred name v then [(nameValuePair name v)] else []) (attrNames set)); | |
… while calling the 'listToAttrs' builtin | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/attrsets.nix:647:5: | |
646| set: | |
647| listToAttrs (concatMap (name: let v = set.${name}; in if pred name v then [(nameValuePair name v)] else []) (attrNames set)); | |
| ^ | |
648| | |
… while calling the 'concatMap' builtin | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/attrsets.nix:647:18: | |
646| set: | |
647| listToAttrs (concatMap (name: let v = set.${name}; in if pred name v then [(nameValuePair name v)] else []) (attrNames set)); | |
| ^ | |
648| | |
… while calling anonymous lambda | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/attrsets.nix:647:29: | |
646| set: | |
647| listToAttrs (concatMap (name: let v = set.${name}; in if pred name v then [(nameValuePair name v)] else []) (attrNames set)); | |
| ^ | |
648| | |
… while evaluating a branch condition | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/attrsets.nix:647:59: | |
646| set: | |
647| listToAttrs (concatMap (name: let v = set.${name}; in if pred name v then [(nameValuePair name v)] else []) (attrNames set)); | |
| ^ | |
648| | |
… from call site | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/attrsets.nix:647:62: | |
646| set: | |
647| listToAttrs (concatMap (name: let v = set.${name}; in if pred name v then [(nameValuePair name v)] else []) (attrNames set)); | |
| ^ | |
648| | |
… while calling anonymous lambda | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/types.nix:583:51: | |
582| merge = loc: defs: | |
583| mapAttrs (n: v: v.value) (filterAttrs (n: v: v ? value) (zipAttrsWith (name: defs: | |
| ^ | |
584| (mergeDefinitions (loc ++ [name]) elemType defs).optionalValue | |
… from call site | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/attrsets.nix:647:43: | |
646| set: | |
647| listToAttrs (concatMap (name: let v = set.${name}; in if pred name v then [(nameValuePair name v)] else []) (attrNames set)); | |
| ^ | |
648| | |
… while calling anonymous lambda | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/types.nix:583:86: | |
582| merge = loc: defs: | |
583| mapAttrs (n: v: v.value) (filterAttrs (n: v: v ? value) (zipAttrsWith (name: defs: | |
| ^ | |
584| (mergeDefinitions (loc ++ [name]) elemType defs).optionalValue | |
… while evaluating the attribute 'optionalValue' | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:868:5: | |
867| | |
868| optionalValue = | |
| ^ | |
869| if isDefined then { value = mergedValue; } | |
… while evaluating a branch condition | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:869:7: | |
868| optionalValue = | |
869| if isDefined then { value = mergedValue; } | |
| ^ | |
870| else {}; | |
(6 duplicate frames omitted) | |
… from call site | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/nixos/modules/system/boot/systemd.nix:694:31: | |
693| rotate = 1; | |
694| create = "0664 root ${config.users.groups.utmp.name}"; | |
| ^ | |
695| minsize = "1M"; | |
… while calling anonymous lambda | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/attrsets.nix:1205:18: | |
1204| mapAttrs | |
1205| (name: value: | |
| ^ | |
1206| if isAttrs value && cond value | |
… from call site | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/attrsets.nix:1208:18: | |
1207| then recurse (path ++ [ name ]) value | |
1208| else f (path ++ [ name ]) value); | |
| ^ | |
1209| in | |
… while calling anonymous lambda | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:254:72: | |
253| # For definitions that have an associated option | |
254| declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options; | |
| ^ | |
255| | |
… while evaluating the attribute 'value' | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-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 `users.groups': | |
(10 duplicate frames omitted) | |
… while evaluating definitions from `/nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/nixos/modules/config/resolvconf.nix': | |
(7 duplicate frames omitted) | |
… from call site | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/nixos/modules/config/resolvconf.nix:134:15: | |
133| | |
134| (lib.mkIf cfg.enable { | |
| ^ | |
135| users.groups.resolvconf = {}; | |
… while calling anonymous lambda | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/attrsets.nix:1205:18: | |
1204| mapAttrs | |
1205| (name: value: | |
| ^ | |
1206| if isAttrs value && cond value | |
… from call site | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/attrsets.nix:1208:18: | |
1207| then recurse (path ++ [ name ]) value | |
1208| else f (path ++ [ name ]) value); | |
| ^ | |
1209| in | |
… while calling anonymous lambda | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:254:72: | |
253| # For definitions that have an associated option | |
254| declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options; | |
| ^ | |
255| | |
… while evaluating the attribute 'value' | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-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 `networking.resolvconf.enable': | |
(8 duplicate frames omitted) | |
… while evaluating the attribute 'default' | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/nixos/modules/config/resolvconf.nix:47:9: | |
46| type = lib.types.bool; | |
47| default = !(config.environment.etc ? "resolv.conf"); | |
| ^ | |
48| defaultText = lib.literalExpression ''!(config.environment.etc ? "resolv.conf")''; | |
… in the argument of the not operator | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/nixos/modules/config/resolvconf.nix:47:21: | |
46| type = lib.types.bool; | |
47| default = !(config.environment.etc ? "resolv.conf"); | |
| ^ | |
48| defaultText = lib.literalExpression ''!(config.environment.etc ? "resolv.conf")''; | |
… from call site | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/nixos/modules/config/resolvconf.nix:47:21: | |
46| type = lib.types.bool; | |
47| default = !(config.environment.etc ? "resolv.conf"); | |
| ^ | |
48| defaultText = lib.literalExpression ''!(config.environment.etc ? "resolv.conf")''; | |
… while calling anonymous lambda | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/attrsets.nix:1205:18: | |
1204| mapAttrs | |
1205| (name: value: | |
| ^ | |
1206| if isAttrs value && cond value | |
… from call site | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/attrsets.nix:1208:18: | |
1207| then recurse (path ++ [ name ]) value | |
1208| else f (path ++ [ name ]) value); | |
| ^ | |
1209| in | |
… while calling anonymous lambda | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:254:72: | |
253| # For definitions that have an associated option | |
254| declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options; | |
| ^ | |
255| | |
… while evaluating the attribute 'value' | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-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 `environment.etc': | |
(10 duplicate frames omitted) | |
… while evaluating definitions from `/nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/nixos/modules/services/networking/ssh/sshd.nix': | |
… from call site | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:837:128: | |
836| defs' = concatMap (m: | |
837| map (value: { inherit (m) file; inherit value; }) (addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value)) | |
| ^ | |
838| ) defs; | |
… while calling 'dischargeProperties' | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:908:25: | |
907| */ | |
908| dischargeProperties = def: | |
| ^ | |
909| if def._type or "" == "merge" then | |
… from call site | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:914:11: | |
913| if def.condition then | |
914| dischargeProperties def.content | |
| ^ | |
915| else | |
… while calling 'dischargeProperties' | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:908:25: | |
907| */ | |
908| dischargeProperties = def: | |
| ^ | |
909| if def._type or "" == "merge" then | |
… while evaluating a branch condition | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:909:5: | |
908| dischargeProperties = def: | |
909| if def._type or "" == "merge" then | |
| ^ | |
910| concatMap dischargeProperties def.contents | |
… while evaluating the attribute 'content' | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:1013:25: | |
1012| { _type = "if"; | |
1013| inherit condition content; | |
| ^ | |
1014| }; | |
… in the left operand of the update (//) operator | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/nixos/modules/services/networking/ssh/sshd.nix:558:37: | |
557| | |
558| environment.etc = authKeysFiles // authPrincipalsFiles // | |
| ^ | |
559| { "ssh/moduli".source = cfg.moduliFile; | |
… while calling the 'listToAttrs' builtin | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/nixos/modules/services/networking/ssh/sshd.nix:122:6: | |
121| )); | |
122| in lib.listToAttrs (map mkAuthKeyFile usersWithKeys); | |
| ^ | |
123| | |
… while calling the 'map' builtin | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/nixos/modules/services/networking/ssh/sshd.nix:122:23: | |
121| )); | |
122| in lib.listToAttrs (map mkAuthKeyFile usersWithKeys); | |
| ^ | |
123| | |
… while calling the 'attrValues' builtin | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/nixos/modules/services/networking/ssh/sshd.nix:119:21: | |
118| }; | |
119| usersWithKeys = lib.attrValues (lib.flip lib.filterAttrs config.users.users (n: u: | |
| ^ | |
120| lib.length u.openssh.authorizedKeys.keys != 0 || lib.length u.openssh.authorizedKeys.keyFiles != 0 | |
… from call site | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/nixos/modules/services/networking/ssh/sshd.nix:119:37: | |
118| }; | |
119| usersWithKeys = lib.attrValues (lib.flip lib.filterAttrs config.users.users (n: u: | |
| ^ | |
120| lib.length u.openssh.authorizedKeys.keys != 0 || lib.length u.openssh.authorizedKeys.keyFiles != 0 | |
… while calling 'flip' | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/trivial.nix:317:16: | |
316| */ | |
317| flip = f: a: b: f b a; | |
| ^ | |
318| | |
… from call site | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/trivial.nix:317:19: | |
316| */ | |
317| flip = f: a: b: f b a; | |
| ^ | |
318| | |
(6 duplicate frames omitted) | |
… while calling anonymous lambda | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/nixos/modules/services/networking/ssh/sshd.nix:119:85: | |
118| }; | |
119| usersWithKeys = lib.attrValues (lib.flip lib.filterAttrs config.users.users (n: u: | |
| ^ | |
120| lib.length u.openssh.authorizedKeys.keys != 0 || lib.length u.openssh.authorizedKeys.keyFiles != 0 | |
… in the left operand of the OR (||) operator | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/nixos/modules/services/networking/ssh/sshd.nix:120:53: | |
119| usersWithKeys = lib.attrValues (lib.flip lib.filterAttrs config.users.users (n: u: | |
120| lib.length u.openssh.authorizedKeys.keys != 0 || lib.length u.openssh.authorizedKeys.keyFiles != 0 | |
| ^ | |
121| )); | |
… while calling the 'length' builtin | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/nixos/modules/services/networking/ssh/sshd.nix:120:7: | |
119| usersWithKeys = lib.attrValues (lib.flip lib.filterAttrs config.users.users (n: u: | |
120| lib.length u.openssh.authorizedKeys.keys != 0 || lib.length u.openssh.authorizedKeys.keyFiles != 0 | |
| ^ | |
121| )); | |
… from call site | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/nixos/modules/services/networking/ssh/sshd.nix:120:18: | |
119| usersWithKeys = lib.attrValues (lib.flip lib.filterAttrs config.users.users (n: u: | |
120| lib.length u.openssh.authorizedKeys.keys != 0 || lib.length u.openssh.authorizedKeys.keyFiles != 0 | |
| ^ | |
121| )); | |
… while calling anonymous lambda | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/attrsets.nix:1205:18: | |
1204| mapAttrs | |
1205| (name: value: | |
| ^ | |
1206| if isAttrs value && cond value | |
… from call site | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/attrsets.nix:1208:18: | |
1207| then recurse (path ++ [ name ]) value | |
1208| else f (path ++ [ name ]) value); | |
| ^ | |
1209| in | |
… while calling anonymous lambda | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:254:72: | |
253| # For definitions that have an associated option | |
254| declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options; | |
| ^ | |
255| | |
… while evaluating the attribute 'value' | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-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 `users.users.root.openssh.authorizedKeys.keys': | |
(10 duplicate frames omitted) | |
… while evaluating definitions from `/nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/flake.nix': | |
… from call site | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:837:128: | |
836| defs' = concatMap (m: | |
837| map (value: { inherit (m) file; inherit value; }) (addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value)) | |
| ^ | |
838| ) defs; | |
… while calling 'dischargeProperties' | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:908:25: | |
907| */ | |
908| dischargeProperties = def: | |
| ^ | |
909| if def._type or "" == "merge" then | |
… while evaluating a branch condition | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:909:5: | |
908| dischargeProperties = def: | |
909| if def._type or "" == "merge" then | |
| ^ | |
910| concatMap dischargeProperties def.contents | |
… while evaluating the attribute 'value' | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:619:53: | |
618| (n: value: | |
619| [{ inherit (module) file; inherit value; }] | |
| ^ | |
620| ) | |
… while calling the 'concatMap' builtin | |
at /nix/store/1hbvzsrp3pbs8dp0a56r2iph2rv7iia5-source/flake.nix:14:50: | |
13| karen = { }; | |
14| root.openssh.authorizedKeys.keys = lib.concatMap | |
| ^ | |
15| (user: config.users.users."${user}".openssh.authorizedKeys.keys) | |
… from call site | |
at /nix/store/1hbvzsrp3pbs8dp0a56r2iph2rv7iia5-source/flake.nix:16:17: | |
15| (user: config.users.users."${user}".openssh.authorizedKeys.keys) | |
16| config.users.groups.wheel.members; | |
| ^ | |
17| }; | |
… while calling anonymous lambda | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/attrsets.nix:1205:18: | |
1204| mapAttrs | |
1205| (name: value: | |
| ^ | |
1206| if isAttrs value && cond value | |
… from call site | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/attrsets.nix:1208:18: | |
1207| then recurse (path ++ [ name ]) value | |
1208| else f (path ++ [ name ]) value); | |
| ^ | |
1209| in | |
… while calling anonymous lambda | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/modules.nix:254:72: | |
253| # For definitions that have an associated option | |
254| declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options; | |
| ^ | |
255| | |
… while evaluating the attribute 'value' | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-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; | |
error: infinite recursion encountered | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
building the system configuration... | |
warning: not writing modified lock file of flake 'git+https://gist.github.com/al3xtjames/3f716ab5243455dfd965ebbf6f34c8cb': | |
• Added input 'nixpkgs': | |
'github:NixOS/nixpkgs/19a494135aef450171149a6c328375fb3d96947a?narHash=sha256-H7fcl1VElBE6WGDKvv5yM1bzYHqwIEYTL1rcoDUEofQ%3D' (2024-09-15) | |
evaluation warning: system.stateVersion is not set, defaulting to 24.11. Read why this matters on https://nixos.org/manual/nixos/stable/options.html#opt-system.stateVersion. | |
error: | |
… while calling the 'head' builtin | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/lib/attrsets.nix:1575:11: | |
1574| || pred here (elemAt values 1) (head values) then | |
1575| head values | |
| ^ | |
1576| else | |
… while evaluating the attribute 'value' | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-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 `system.build.toplevel': | |
… while evaluating definitions from `/nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/nixos/modules/system/activation/top-level.nix': | |
… while evaluating the option `assertions': | |
… while evaluating definitions from `/nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/nixos/modules/system/boot/systemd.nix': | |
… while evaluating the option `systemd.services': | |
… while evaluating definitions from `/nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/nixos/modules/services/logging/logrotate.nix': | |
… while evaluating the option `services.logrotate.enable': | |
… while evaluating the option `users.groups': | |
… while evaluating definitions from `/nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/nixos/modules/config/resolvconf.nix': | |
… while evaluating the option `networking.resolvconf.enable': | |
… while evaluating the option `environment.etc': | |
… while evaluating definitions from `/nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/nixos/modules/services/networking/ssh/sshd.nix': | |
… while evaluating the option `users.users.root.openssh.authorizedKeys.keys': | |
… while evaluating definitions from `/nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-source/flake.nix': | |
(stack trace truncated; use '--show-trace' to show the full, detailed trace) | |
error: infinite recursion encountered | |
at /nix/store/pa9493k6bcfc9yan8w5sayjfdl7xpffx-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; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment