Revert "refactor(flake): use nixpkgs lib directly"

This reverts commit 4a422599c7.
This commit is contained in:
2026-08-28 09:18:11 -04:00
parent 4a422599c7
commit 41b9d41776

View File

@@ -75,10 +75,8 @@
outputs =
{ self, nixpkgs, ... }@inputs:
let
flake = import ./flake {
lib = nixpkgs.lib;
inherit inputs self;
};
inherit (nixpkgs) lib;
flake = import ./flake { inherit lib inputs self; };
in
{
# Every host under hosts/ is discovered and built.
@@ -98,12 +96,12 @@
};
# `nix flake check` builds every discovered host toplevel.
checks.x86_64-linux = nixpkgs.lib.mapAttrs (
checks.x86_64-linux = lib.mapAttrs (
name: host:
if host.config.warnings == [ ] then
host.config.system.build.toplevel
else
throw "Host ${name} has evaluation warnings:\n${nixpkgs.lib.concatStringsSep "\n" host.config.warnings}"
throw "Host ${name} has evaluation warnings:\n${lib.concatStringsSep "\n" host.config.warnings}"
) self.nixosConfigurations;
};
}