refactor(flake): move assembly code out of lib

This commit is contained in:
2026-08-29 17:05:43 -04:00
parent abac67afb4
commit 1ba3bdf8d6
12 changed files with 46 additions and 53 deletions

View File

@@ -76,14 +76,11 @@
{ self, nixpkgs, ... }@inputs:
let
inherit (nixpkgs) lib;
my = import ./lib { inherit lib inputs self; };
flake = import ./flake { inherit lib inputs self; };
in
{
# Helper functions for discovering and building hosts.
lib = my;
# Every host under hosts/ is discovered and built.
nixosConfigurations = my.mkHosts (self + "/hosts");
nixosConfigurations = flake.mkHosts (self + "/hosts");
# A project shell for agent-local resources that should travel with this
# checkout rather than the operator's global profile.