2021-04-19 02:45:08 +00:00
|
|
|
{ lib }:
|
|
|
|
|
2021-04-25 23:21:40 +00:00
|
|
|
# dependencies to return a builder
|
|
|
|
{ self, inputs }:
|
2021-03-14 07:10:51 +00:00
|
|
|
|
2021-04-25 23:21:40 +00:00
|
|
|
{ modules, specialArgs, ... } @ args:
|
|
|
|
let inherit (specialArgs.channel.input.lib) nixosSystem; in
|
|
|
|
nixosSystem
|
|
|
|
(args // {
|
|
|
|
modules =
|
|
|
|
let
|
|
|
|
fullHostConfig = (nixosSystem (args // { inherit modules; })).config;
|
2021-03-18 20:58:01 +00:00
|
|
|
|
2021-04-25 23:21:40 +00:00
|
|
|
isoConfig = (nixosSystem
|
|
|
|
(args // {
|
|
|
|
modules = modules ++ [
|
|
|
|
(lib.modules.iso { inherit self inputs fullHostConfig; })
|
|
|
|
];
|
|
|
|
})).config;
|
|
|
|
|
|
|
|
hmConfig = (nixosSystem
|
|
|
|
(args // {
|
|
|
|
modules = modules ++ [
|
|
|
|
(lib.modules.hmConfig)
|
|
|
|
];
|
|
|
|
})).config;
|
|
|
|
in
|
|
|
|
modules ++ [{
|
|
|
|
system.build = {
|
|
|
|
iso = isoConfig.system.build.isoImage;
|
|
|
|
homes = hmConfig.home-manager.users;
|
|
|
|
};
|
|
|
|
lib = {
|
|
|
|
inherit specialArgs;
|
|
|
|
testModule = {
|
|
|
|
imports = modules;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}];
|
|
|
|
})
|