lib.summon: drop reflection

This commit is contained in:
Max Headroom 2024-07-16 14:07:30 +02:00
parent f39a48c425
commit 601fc03e32
2 changed files with 3 additions and 6 deletions

View file

@ -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, ... }: {

View file

@ -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;
}; };
}); });
} }