depot/lib/hours.nix
2024-07-16 14:29:48 +02:00

16 lines
347 B
Nix

{ config, inputs, lib, self, withSystem, ... }:
let
inherit (lib) const mapAttrs;
in
{
lib.summon = system: f: let
lift = config;
in withSystem system ({ config, inputs', self', ... }: f {
depot = self // self' // lift // config // {
inputs = mapAttrs (name: const (inputs.${name} // inputs'.${name})) inputs;
};
});
}