lib.summon: drop reflection
This commit is contained in:
parent
f39a48c425
commit
601fc03e32
2 changed files with 3 additions and 6 deletions
|
@ -5,7 +5,7 @@ let
|
||||||
inherit (config) gods;
|
inherit (config) gods;
|
||||||
|
|
||||||
mkNixOS = name: host: nixosSystem {
|
mkNixOS = name: host: nixosSystem {
|
||||||
specialArgs = config.lib.summon name lib.id;
|
specialArgs = config.lib.summon host.system lib.id;
|
||||||
modules = [
|
modules = [
|
||||||
host.nixos
|
host.nixos
|
||||||
(withSystem host.system ({ config, pkgs, ... }: {
|
(withSystem host.system ({ config, pkgs, ... }: {
|
||||||
|
|
|
@ -5,14 +5,11 @@ let
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
lib.summon = name: f: let
|
lib.summon = system: f: let
|
||||||
lift = config;
|
lift = config;
|
||||||
hour = config.hours.${name};
|
in withSystem system ({ config, inputs', self', ... }: f {
|
||||||
in withSystem hour.system ({ config, inputs', self', ... }: f {
|
|
||||||
depot = self // self' // lift // config // {
|
depot = self // self' // lift // config // {
|
||||||
inputs = mapAttrs (name: const (inputs.${name} // inputs'.${name})) inputs;
|
inputs = mapAttrs (name: const (inputs.${name} // inputs'.${name})) inputs;
|
||||||
# peer into the Watchman's Glass
|
|
||||||
reflection = hour;
|
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue