gunk-dev/the-valley

host-module.nix

source52be41028750main's published tip history
26.0 KiB
1# What the NixOS module renders from a declaration, and what it must refuse.
2# The refusals are eval-time: a host that must not evaluate is caught by a
3# throw here, since there is nothing to build once it has. What a host does
4# render is pinned by module-eval.sh over the rendered scripts.
5{
6 pkgs,
7 lib,
8 hosts,
9 ...
10}:
11let
12 inherit (hosts)
13 unprotectedInstanceHost
14 acceptEnvHost
15 matchAcceptEnvHost
16 wildcardAcceptEnvHost
17 quotedAcceptEnvHost
18 tabAcceptEnvHost
19 setEnvHost
20 permitUserEnvironmentHost
21 conflictingKeysHost
22 host
23 noBackupHost
24 noSecretsHost
25 protectedHost
26 busHost
27 mirrorHost
28 integratorHost
29 integratorSelfHost
30 restrictedHost
31 spacedSignerProjectsHost
32 unicodeSpacedSignerProjectsHost
33 identityHost
34 ;
35
36 failedAssertions = builtins.filter (a: !a.assertion) (
37 host.config.assertions
38 ++ noBackupHost.config.assertions
39 ++ busHost.config.assertions
40 ++ mirrorHost.config.assertions
41 ++ protectedHost.config.assertions
42 ++ integratorHost.config.assertions
43 ++ integratorSelfHost.config.assertions
44 ++ restrictedHost.config.assertions
45 ++ identityHost.config.assertions
46 );
47
48 missingSecretAssertions = builtins.filter (a: !a.assertion) noSecretsHost.config.assertions;
49
50 # The hosts the module must refuse, each with the words its refusal must
51 # say. An assertion that stopped firing would leave the push policy
52 # quietly wrong, so each is held to naming what is wrong.
53 refusedHosts = [
54 {
55 host = unprotectedInstanceHost;
56 says = "whose refs/heads/main is not protected";
57 why = "an instance repository without protection would let any key that can push rewrite the floor and the registry";
58 }
59 {
60 host = acceptEnvHost;
61 says = "AcceptEnv";
62 why = "sshd accepting the principal variable from the client would let any key name any principal";
63 }
64 {
65 host = matchAcceptEnvHost;
66 says = "GIT_CONFIG_*";
67 why = "sshd accepting GIT_ variables in the git user's Match block, in whatever case the keyword is written, would let a client set git's configuration";
68 }
69 {
70 host = wildcardAcceptEnvHost;
71 says = "G?T_*";
72 why = "a wildcard that admits GIT_ variables admits them however it is spelled";
73 }
74 {
75 host = quotedAcceptEnvHost;
76 says = "holds a quote or a backslash";
77 why = "a quoted name is one sshd unquotes and admits, so a check that read it differently would pass it";
78 }
79 {
80 host = tabAcceptEnvHost;
81 says = "VALLEY_PRINCIPAL from the client";
82 why = "a name after a tab is a name sshd admits";
83 }
84 {
85 host = setEnvHost;
86 says = "SetEnv";
87 why = "sshd setting the principal itself would make every key push as it";
88 }
89 {
90 host = permitUserEnvironmentHost;
91 says = "PermitUserEnvironment";
92 why = "a PermitUserEnvironment wider than the principal variable would let a key's entry or ~/.ssh/environment set what the push policy does not expect";
93 }
94 {
95 host = spacedSignerProjectsHost;
96 says = "services.valley.integrator.signerProjects holds";
97 why = "a project with a space in it would be read back as two projects the declaration never listed";
98 }
99 {
100 host = unicodeSpacedSignerProjectsHost;
101 says = "services.valley.integrator.signerProjects holds";
102 why = "a project holding a no-break space would be read back by the integrator as two projects, or refused at start";
103 }
104 {
105 host = conflictingKeysHost;
106 says = "more than one principal tag";
107 why = "a key declared under two tags would push as whichever entry sshd reads first";
108 }
109 ];
110
111 unrefusedHosts = builtins.filter (
112 r: !(lib.any (a: !a.assertion && lib.hasInfix r.says a.message) r.host.config.assertions)
113 ) refusedHosts;
114
115 protectedKeyLines = protectedHost.config.users.users.git.openssh.authorizedKeys.keys;
116
117 resticRenderedWithoutDeclaration =
118 noBackupHost.config.systemd.services ? "restic-backups-valley"
119 || noBackupHost.config.systemd.timers ? "restic-backups-valley";
120
121 # The bus defaults off; a host that never asked for one must
122 # render zero bus machinery.
123 busRenderedWithoutEnable =
124 noBackupHost.config.systemd.services ? valley-bus
125 || noBackupHost.config.systemd.services ? valley-bus-init;
126
127 # A declaration with no protection block and no tagged key still gets
128 # the push policy on every project — the policy is the host's, and a
129 # protection block only adds protected refs to it — and nothing of the
130 # principal machinery: no tag on a key, no sshd change.
131 protectionRenderedWithoutDeclaration =
132 noBackupHost.config.services.openssh.settings ? PermitUserEnvironment
133 || lib.any (lib.hasInfix "environment=") (
134 noBackupHost.config.users.users.git.openssh.authorizedKeys.keys
135 );
136
137 policyMissingWithoutDeclaration =
138 !(lib.hasInfix "valley-protect-the-valley" noBackupHost.config.systemd.services.valley-init.script);
139
140 # The integrator's units. What a controller *does* is not checked here
141 # and no VM is booted: that is integrator-e2e's job (the real binaries
142 # over real repositories) and, past it, live exercise on a host. These
143 # assertions cover the wiring — that a controller is rendered for what
144 # the declaration protects and for nothing else, under an identity that
145 # is not the git user's, pointed at the key and the signers the consumer
146 # supplied.
147 #
148 # There is a seam between those two halves that neither reaches, and in a
149 # single day it produced five deployment failures. Every assertion below is
150 # an eval of the unit's text; integrator-e2e runs the binaries with no unit
151 # around them at all. What sits between is the unit's sandbox and identity
152 # meeting the filesystem the binaries actually use at runtime:
153 #
154 # - git refusing a repository the service does not own (bd-500adf7)
155 # - a push authenticating as the operator rather than as the run
156 # (bd-353c59d)
157 # - no writable temporary directory, so no worktree could be made
158 # - the worktree metadata root, created by whichever service reached it
159 # first and then unchmodable by the other, which failed valley-init and
160 # took every valley unit down with it
161 # - the state directory not writable under ProtectSystem=strict unless
162 # the unit names it, which the previous fix had made the scratch root
163 #
164 # Each was found by a host, minutes of a live service after a deploy that
165 # every check here passed. They compose: the third's fix set up the fourth,
166 # and the fourth's fix set up the fifth. That is the argument. A seam whose
167 # failures feed each other is not one to pin an assertion at a time, and
168 # each assertion here that marks a piece of it — the git ownership
169 # exception, TMPDIR, the worktrees root, ReadWritePaths — marks a place a
170 # smoke boot would have spoken first.
171 #
172 # A nixosTest that boots one host, starts the units and reconciles one
173 # change end to end is the next check this module needs. Nothing else
174 # closes the seam, and five incidents is enough evidence of what it costs
175 # to leave open. Not built here.
176 #
177 # Protection and integration are separable declarations: protectedHost
178 # declares the same protected projects with the service off, and must
179 # evaluate to no controller at all.
180 integratorRenderedWithoutEnable =
181 protectedHost.config.systemd.services ? "valley-integrator@"
182 || protectedHost.config.systemd.targets ? valley-integrators
183 || lib.hasInfix "sharedRepository" protectedHost.config.systemd.services.valley-init.script;
184
185 # One target pulls in each controller, and another the path unit that
186 # publishes each project's queued moves, landings included.
187 integratorWants = integratorHost.config.systemd.targets.valley-integrators.wants;
188 controllers = lib.filter (lib.hasPrefix "valley-integrator@") integratorWants;
189 publishers = integratorHost.config.systemd.targets.valley-publish.wants;
190
191 integratorUser = integratorHost.config.systemd.services."valley-integrator@".serviceConfig.User;
192
193 # The controller is not the repositories' owner, which is the whole point
194 # of running it as itself — so git needs an ownership exception, and
195 # where that exception lives is load-bearing. GIT_CONFIG_* is command
196 # scope, the only scope besides system and global that safe.directory is
197 # read from, and the unit's environment is inherited by every git the
198 # controller drives. It names one repository: a wildcard here would hand
199 # a compromised controller every repository on the host.
200 integratorGitEnv = integratorHost.config.systemd.services."valley-integrator@".environment;
201
202 # The count is what git reads; an entry past it is an entry git ignores,
203 # silently. So it is checked against the entries actually rendered rather
204 # than against a number written here, which would have to be edited every
205 # time a grant is added and would go on passing if it were not.
206 integratorSafeDirectory =
207 integratorGitEnv.GIT_CONFIG_KEY_0 or null != "safe.directory"
208 || integratorGitEnv.GIT_CONFIG_VALUE_0 or null != "/srv/git/%i.git"
209 || integratorGitEnv.GIT_CONFIG_COUNT or null
210 != toString (
211 lib.length (lib.filter (lib.hasPrefix "GIT_CONFIG_KEY_") (lib.attrNames integratorGitEnv))
212 );
213
214 integratorService = integratorHost.config.systemd.services."valley-integrator@".serviceConfig;
215
216 # Scratch goes under the state directory, because the sandbox leaves no
217 # writable temporary directory and a verdict needs a checkout on disk. Two
218 # halves, and each was a live failure on its own. TMPDIR naming a path
219 # outside the state directory is the first; the state directory not being
220 # named in ReadWritePaths is the second, which failed even though
221 # ProtectSystem=strict is documented to leave a declared state directory
222 # writable. Everything the unit may write is enumerated, so what a reader
223 # of the unit sees is the whole of it.
224 # The floor is read from the instance repository's integrated tip
225 # (dcr-f41f718, dcr-b87f6e8), so a controller is told which repository
226 # carries it and reads it there. Three things have to be true of that, and
227 # each was a way for it to be silently wrong.
228 #
229 # The controller has to be told at all — the failure this replaced was a
230 # binary looking for a materialized directory nothing populated.
231 #
232 # It has to work when the repository carrying the floor is not the one the
233 # controller serves, which is the ordinary case: on integratorHost every
234 # controller serves a protected project and reads the floor out of
235 # "open", which no controller serves. git refuses a repository the caller
236 # does not own, so that read needs its own safe.directory entry, named and
237 # not wildcarded — the same failure as the served repository's, one
238 # repository over.
239 #
240 # And it has to keep working when the two coincide, which is what an
241 # instance's own host looks like: integratorSelfHost's controller for
242 # "guarded" reads the floor from "guarded".
243 integratorFloor =
244 let
245 command = integratorHost.config.systemd.services."valley-integrator@".serviceConfig.ExecStart;
246 selfCommand = integratorSelfHost.config.systemd.services."valley-integrator@".serviceConfig.ExecStart;
247 env = integratorHost.config.systemd.services."valley-integrator@".environment;
248 in
249 !(lib.hasInfix "--instance-repo /srv/git/sealed.git" command)
250 || !(lib.hasInfix "--instance-repo /srv/git/guarded.git" selfCommand)
251 || env.GIT_CONFIG_COUNT or null != "2"
252 || env.GIT_CONFIG_KEY_1 or null != "safe.directory"
253 || env.GIT_CONFIG_VALUE_1 or null != "/srv/git/sealed.git";
254
255 integratorScratch =
256 integratorGitEnv.TMPDIR or null != "/var/lib/${integratorService.StateDirectory}"
257 || !(builtins.elem "/var/lib/${integratorService.StateDirectory}" integratorService.ReadWritePaths);
258
259 # The registry compiler. It is off by default and must stay inert: a
260 # consumer that has not asked for it renders the system it always did.
261 # integratorHost is the strongest witness available — the integrator on,
262 # the signers file supplied by hand, and every option of the identity
263 # block left alone.
264 identityRenderedWithoutEnable =
265 integratorHost.config.systemd.services ? valley-identity
266 || integratorHost.config.systemd.timers ? valley-identity
267 || integratorHost.config.services.openssh.settings ? PermitUserEnvironment
268 || lib.any (lib.hasInfix "valley-identity") integratorHost.config.services.openssh.authorizedKeysFiles
269 || lib.hasInfix "valley-identity" integratorHost.config.services.openssh.extraConfig
270 || lib.hasInfix "valley-identity" (
271 integratorHost.config.systemd.services."valley-integrator@".serviceConfig.ExecStart
272 )
273 || lib.hasInfix "--name " (
274 integratorHost.config.systemd.services."valley-integrator@".serviceConfig.ExecStart
275 );
276
277 identityService = identityHost.config.systemd.services.valley-identity.serviceConfig;
278
279 identityStateDir = "/var/lib/${identityService.StateDirectory or ""}";
280
281 # What the compiled artifacts have to be true of, and each was a way for
282 # the machinery to be quietly wrong.
283 #
284 # The compiler writes into its state directory and nowhere else, so that
285 # directory has to be the one path the unit may write.
286 #
287 # sshd walks every directory above an authorized-keys file and refuses a
288 # group- or world-writable one, so the state directory is 0755 rather than
289 # the 0700 a service's state usually takes — and the unit runs as the git
290 # user, because sshd equally refuses a file owned by anyone but root or
291 # the account it authorizes.
292 #
293 # The compiled file is added to what sshd reads for the git user rather
294 # than replacing it, and for the git user alone: the user's Match block
295 # names the declared keys and the compiled ones, and nothing else — no
296 # ~/.ssh/authorized_keys, no AuthorizedKeysCommand — so every key the git
297 # user accepts carries a tag this module or the compiler wrote. The
298 # compiler is handed the declared keys, so it can refuse a registry key
299 # declared under another tag.
300 identityCompiler =
301 identityService.User or null != identityHost.config.services.valley.user
302 || identityService.StateDirectoryMode or null != "0755"
303 || identityService.ReadWritePaths or [ ] != [ identityStateDir ]
304 || !(lib.hasInfix "--repo /srv/git/sealed.git" identityService.ExecStart)
305 || !(lib.hasInfix "--known-signers ${identityStateDir}/known-signers" identityService.ExecStart)
306 || !(lib.hasInfix "--authorized-keys ${identityStateDir}/authorized_keys.git" identityService.ExecStart)
307 || !(lib.hasInfix "--grants ${identityStateDir}/grants" identityService.ExecStart)
308 || !(lib.hasInfix "-valley-declared-keys" identityService.ExecStart)
309 || !(lib.hasInfix "AuthorizedKeysFile /etc/ssh/authorized_keys.d/%u ${identityStateDir}/authorized_keys.git\n" identityHost.config.services.openssh.extraConfig)
310 || !(lib.hasInfix "AuthorizedKeysCommand none" identityHost.config.services.openssh.extraConfig);
311
312 # A controller under a compiled registry reads the compiled signers file
313 # and signs under the name the registry publishes its key under. The key
314 # hash binds name to key, so a controller signing under the host's default
315 # name while the registry publishes it as "integrator" would produce notes
316 # no verifier can find a key for.
317 identityIntegrator =
318 let
319 command = identityHost.config.systemd.services."valley-integrator@".serviceConfig.ExecStart;
320 in
321 !(lib.hasInfix "--known-signers ${identityStateDir}/known-signers" command)
322 || !(lib.hasInfix "--name integrator" command)
323 || !(builtins.elem "valley-identity.service"
324 identityHost.config.systemd.services."valley-integrator@".after
325 );
326
327 # The signers publication. A host whose integrator runs and which serves
328 # the instance repository publishes there what a client verifies its
329 # transfer statements with. What it publishes has to be what the
330 # controllers use: the same signers file and the same --name, or none on
331 # either, in which case both take the binary's default. The publisher
332 # writes as the git user, which owns the instance repository, may write
333 # that repository and nothing else, runs after the compilation when there
334 # is one, and runs again whenever the signers file changes. The signer
335 # projects file is the controllers' too, or neither has one.
336 flagValue =
337 flag: command:
338 let
339 m = builtins.match ".*--${flag} ([^ ]+).*" command;
340 in
341 if m == null then null else lib.head m;
342
343 signersPublisher =
344 host: repo:
345 let
346 unit = host.config.systemd.services.valley-signers;
347 publish = unit.serviceConfig.ExecStart;
348 controller = host.config.systemd.services."valley-integrator@".serviceConfig.ExecStart;
349 in
350 !(lib.hasInfix "/bin/integrator publish-signers " publish)
351 || flagValue "instance-repo" publish != repo
352 || flagValue "known-signers" publish != flagValue "known-signers" controller
353 || flagValue "name" publish != flagValue "name" controller
354 || flagValue "signer-projects" publish != flagValue "signer-projects" controller
355 || unit.serviceConfig.User or null != "git"
356 || unit.serviceConfig.ReadWritePaths or [ ] != [ repo ]
357 || !(builtins.elem "valley-init.service" unit.after)
358 || !(builtins.elem "multi-user.target" unit.wantedBy)
359 || host.config.systemd.paths.valley-signers.pathConfig.PathChanged or null
360 != flagValue "known-signers" controller
361 || !(builtins.elem "multi-user.target" host.config.systemd.paths.valley-signers.wantedBy);
362
363 signersRenderedWithoutIntegrator =
364 protectedHost.config.systemd.services ? valley-signers
365 || protectedHost.config.systemd.paths ? valley-signers;
366
367 signersUnpublished =
368 signersPublisher integratorHost "/srv/git/sealed.git"
369 || signersPublisher restrictedHost "/srv/git/sealed.git"
370 || signersPublisher integratorSelfHost "/srv/git/guarded.git"
371 || signersPublisher identityHost "/srv/git/sealed.git"
372 || flagValue "name" identityHost.config.systemd.services.valley-signers.serviceConfig.ExecStart
373 != "integrator"
374 || !(builtins.elem "valley-identity.service" identityHost.config.systemd.services.valley-signers.after);
375
376 # A host that restricts no signer gives its controllers no signer
377 # projects file, and one that restricts some gives them one.
378 signerProjectsMisrendered =
379 flagValue "signer-projects" integratorHost.config.systemd.services."valley-integrator@".serviceConfig.ExecStart
380 != null
381 || flagValue "signer-projects" restrictedHost.config.systemd.services."valley-integrator@".serviceConfig.ExecStart
382 == null;
383
384 # The declared keys stay authorized beside the compiled ones. A compiled
385 # file that replaced them would make a bad compilation — or a first boot
386 # before the first one — a locked-out git user, which is the one failure
387 # this machinery must never have.
388 identityKeepsDeclaredKeys =
389 identityHost.config.users.users.git.openssh.authorizedKeys.keys == [ ];
390in
391{
392 module-eval =
393 if failedAssertions != [ ] then
394 throw "valley module-eval: failed assertions: ${
395 lib.concatMapStringsSep "; " (a: a.message) failedAssertions
396 }"
397 else if resticRenderedWithoutDeclaration then
398 throw "valley module-eval: restic machinery rendered for a declaration without a backup block"
399 else if busRenderedWithoutEnable then
400 throw "valley module-eval: bus machinery rendered without services.valley.bus.enable"
401 else if
402 !(lib.any (a: lib.hasInfix "services.valley.backup." a.message) missingSecretAssertions)
403 then
404 throw "valley module-eval: enabling backup without the secret-path options must fail an assertion naming them"
405 else if unrefusedHosts != [ ] then
406 throw "valley module-eval: ${lib.concatMapStringsSep "; " (r: "a host was not refused although ${r.why}") unrefusedHosts}"
407 else if protectionRenderedWithoutDeclaration then
408 throw "valley module-eval: principal machinery rendered for a declaration with no protection block and no tagged key"
409 else if policyMissingWithoutDeclaration then
410 throw "valley module-eval: a project with no protection block got no pre-receive hook — the push policy is installed on every project a host serves"
411 else if protectedHost.config.services.openssh.settings ? PermitUserEnvironment then
412 throw "valley module-eval: sshd must pass no key's environment on: the git user's shell derives the principal from the authenticated key"
413 else if
414 !(lib.hasInfix "valley-git-shell" protectedHost.config.users.users.git.shell)
415 then
416 throw "valley module-eval: the git user's login shell must be the valley's, which derives the principal and pauses pushes until init converges"
417 else if integratorRenderedWithoutEnable then
418 throw "valley module-eval: integrator machinery rendered for a protected declaration that never enabled the service"
419 else if !(integratorHost.config.systemd.services ? "valley-integrator@") then
420 throw "valley module-eval: the integrator is enabled and no controller unit was rendered"
421 else if
422 controllers != [
423 "valley-integrator@guarded.service"
424 "valley-integrator@released.service"
425 "valley-integrator@sealed.service"
426 ]
427 then
428 throw "valley module-eval: a controller runs for each protected project and no other, not ${lib.concatStringsSep ", " controllers}"
429 else if
430 publishers != [
431 "valley-publish@guarded.path"
432 "valley-publish@released.path"
433 "valley-publish@sealed.path"
434 ]
435 then
436 throw "valley module-eval: each controller's landings are published by a path unit of its own, not ${lib.concatStringsSep ", " publishers}"
437 else if integratorHost.config.systemd.services."valley-publish@".serviceConfig.User != "git" then
438 throw "valley module-eval: a landing is published as the git user, which holds the mirror credentials"
439 else if integratorUser == integratorHost.config.services.valley.user then
440 throw "valley module-eval: the integrator must not run as the git user — it has its own (bd-500adf7)"
441 else if !(integratorHost.config.users.users ? ${integratorUser}) then
442 throw "valley module-eval: the integrator runs as ${integratorUser}, which the module never declares"
443 else if integratorHost.config.users.users.${integratorUser}.group != "git" then
444 throw "valley module-eval: the integrator reaches the repositories through the git group, and holds no other grant"
445 else if integratorSafeDirectory then
446 throw "valley module-eval: a controller must carry safe.directory for the one repository it serves in its own environment — it does not own the repositories, and git refuses what it does not own"
447 else if integratorFloor then
448 throw "valley module-eval: a controller must be told which repository carries the floor, and must carry a safe.directory exception for it — the floor is read from that repository's integrated tip, and git refuses a repository its caller does not own"
449 else if integratorScratch then
450 throw "valley module-eval: a controller's TMPDIR must be its state directory and that directory must be named in ReadWritePaths — under ProtectSystem=strict a path the unit does not enumerate is one it cannot write, and a verdict needs a worktree on disk"
451 else if identityRenderedWithoutEnable then
452 throw "valley module-eval: registry-compilation machinery rendered for a host that never enabled it — nothing may change until a consumer opts in"
453 else if identityCompiler then
454 throw "valley module-eval: the compiler must run as the git user, write only its own 0755 state directory, read the registry from the instance repository, write the grants the pre-receive hook reads, and have its authorized_keys added to what sshd reads under the %u token — sshd refuses a keys file owned by anyone but root or the account it authorizes, and a fixed path in that global list would authorize every registry key for every account on the host"
455 else if identityIntegrator then
456 throw "valley module-eval: a controller under a compiled registry must read the compiled signers file, start after the compilation, and sign under the name the registry publishes its key under"
457 else if signersRenderedWithoutIntegrator then
458 throw "valley module-eval: a signers publication rendered for a host whose integrator is off — there is no transfer statement to verify"
459 else if signersUnpublished then
460 throw "valley module-eval: the signers publisher must publish the controllers' own signers file and signing name into the instance repository, as the git user, writing nothing else, after valley-init and the compilation, at boot and whenever the signers file changes"
461 else if signerProjectsMisrendered then
462 throw "valley module-eval: a controller is given a signer projects file exactly when the host restricts a signer to projects"
463 else if identityKeepsDeclaredKeys then
464 throw "valley module-eval: the declared authorized keys must stay authorized beside the compiled ones — a compiled file that replaced them would make a bad compilation a locked-out git user"
465 else
466 pkgs.runCommand "valley-module-eval" {
467 initScript = host.config.systemd.services.valley-init.script;
468 sshdConfig = host.config.services.openssh.extraConfig;
469 resticService = host.config.systemd.units."restic-backups-valley.service".text;
470 resticTimer = host.config.systemd.units."restic-backups-valley.timer".text;
471 protectedInit = protectedHost.config.systemd.services.valley-init.script;
472 protectedKeys = lib.concatStringsSep "\n" protectedKeyLines;
473 protectedShell = protectedHost.config.users.users.git.shell;
474 integratorUnit = integratorHost.config.systemd.units."valley-integrator@.service".text;
475 integratorInit = integratorHost.config.systemd.services.valley-init.script;
476 publishUnit = host.config.systemd.units."valley-publish@.service".text;
477 identityInit = identityHost.config.systemd.services.valley-init.script;
478 passAsFile = [
479 "initScript"
480 "sshdConfig"
481 "resticService"
482 "resticTimer"
483 "protectedInit"
484 "protectedKeys"
485 "integratorUnit"
486 "integratorInit"
487 "publishUnit"
488 "identityInit"
489 ];
490 } (builtins.readFile ./module-eval.sh);
491}