- xlib: mkXlib из lib/xlib/default.nix (было lib/xlib.nix); - архив: ../../archive/ от modules/server, 12+3 модуля; - убраны устаревшие номера строк в ссылке на T16. Проверки: PASS 3, FAIL 0; граф импортов 120 файлов, 119 ссылок.
30 lines
567 B
Nix
30 lines
567 B
Nix
{
|
|
inputs,
|
|
...
|
|
}:
|
|
# Builds a NixOS system from a host record.
|
|
#
|
|
# `xlib` is the pure host value (`mkXlib` from lib/xlib/default.nix) built in
|
|
# configurations/default.nix. It is handed to every module as the `xlib`
|
|
# argument, so modules read plain `xlib.*` data instead of `config.xlib.*`
|
|
# and the host record stays the single source of truth.
|
|
{
|
|
xlib,
|
|
modules ? [ ],
|
|
system ? "x86_64-linux",
|
|
...
|
|
}:
|
|
let
|
|
lib = inputs.nixpkgs.lib;
|
|
in
|
|
lib.nixosSystem {
|
|
inherit
|
|
system
|
|
modules
|
|
;
|
|
specialArgs = {
|
|
inherit inputs;
|
|
inherit xlib;
|
|
};
|
|
}
|