2024-09-07 21:52:06 +02:00
|
|
|
{ nixpkgs ? <nixpkgs>, pkgs ? (import nixpkgs {}), lib ? pkgs.lib }:
|
2024-04-21 20:34:39 +02:00
|
|
|
args:
|
|
|
|
let
|
|
|
|
modulesPath = builtins.toString ../modules;
|
|
|
|
in
|
|
|
|
# FIXME: we could replace the `lib` by a lib-only minimal nixpkgs.
|
|
|
|
(import "${nixpkgs}/lib/modules.nix" { inherit lib; }).evalModules (args // {
|
|
|
|
specialArgs = (args.specialArgs or {}) // {
|
|
|
|
inherit modulesPath;
|
|
|
|
};
|
|
|
|
modules = (args.modules or []) ++ [
|
|
|
|
"${modulesPath}/hardware.nix"
|
|
|
|
"${modulesPath}/base.nix"
|
|
|
|
"${modulesPath}/busybox.nix"
|
|
|
|
"${modulesPath}/hostname.nix"
|
|
|
|
"${modulesPath}/kernel"
|
2024-09-30 19:38:13 +02:00
|
|
|
"${modulesPath}/systemd"
|
2024-04-21 20:34:39 +02:00
|
|
|
"${modulesPath}/users.nix"
|
|
|
|
"${modulesPath}/outputs.nix"
|
2024-04-28 17:34:57 +02:00
|
|
|
"${modulesPath}/nixpkgs.nix"
|
2024-05-24 18:59:35 +02:00
|
|
|
"${modulesPath}/misc/assertions.nix"
|
2024-04-21 20:34:39 +02:00
|
|
|
# FIXME: we should let the caller inject `pkgs` and `lim` ideally...
|
2024-04-28 17:34:57 +02:00
|
|
|
];
|
2024-04-21 20:34:39 +02:00
|
|
|
})
|