From 601fc03e32b89647c3f1e025a5a318968cff6094 Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 16 Jul 2024 14:07:30 +0200 Subject: [PATCH] lib.summon: drop reflection --- hosts/nixos.nix | 2 +- lib/hours.nix | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/hosts/nixos.nix b/hosts/nixos.nix index a4e5187..a3a8e3a 100644 --- a/hosts/nixos.nix +++ b/hosts/nixos.nix @@ -5,7 +5,7 @@ let inherit (config) gods; mkNixOS = name: host: nixosSystem { - specialArgs = config.lib.summon name lib.id; + specialArgs = config.lib.summon host.system lib.id; modules = [ host.nixos (withSystem host.system ({ config, pkgs, ... }: { diff --git a/lib/hours.nix b/lib/hours.nix index 3dc1a8e..47cc30c 100644 --- a/lib/hours.nix +++ b/lib/hours.nix @@ -5,14 +5,11 @@ let in { - lib.summon = name: f: let + lib.summon = system: f: let lift = config; - hour = config.hours.${name}; - in withSystem hour.system ({ config, inputs', self', ... }: f { + in withSystem system ({ config, inputs', self', ... }: f { depot = self // self' // lift // config // { inputs = mapAttrs (name: const (inputs.${name} // inputs'.${name})) inputs; - # peer into the Watchman's Glass - reflection = hour; }; }); }