not-os
toplevel
$ nix-build -A toplevel
/nix/store/p0b6vw6kgv39ld9xyig8ylpfzc4s3gr9-toplevel
The toplevel contains two scripts and a directory (actually a symlink):
$ ls /nix/store/q40j6y70nwhgazvhzrlzh79cjlfik7jv-not-os/
activate init sw
activate
content is the value ofconfig.system.activationScripts.script
. In particular it calls thesetup-etc.pl
script.init
content is the value ofstage-2
, which isstage-2-init.sh
, withsystemConfig
replaced by toplevel’s path, andsw/bin/
set as its$PATH
. Theinit
script mounts a few special filesystems, calls theactivate
script, then execute `runit.sw
is a symlink topath
, which contains only abin/
directory with symlinks to base executables (e.g.[
,nix-build
,yes
, …).
The toplevel is packaged as a squashfs image.
The toplevel’s path is sometimes called systemConfig
or
sysconfig
.