not-os
toplevel
$ nix-build -A toplevel
/nix/store/27bb1n843vl66hr5hshhhay7wprvxijz-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
.