From 41b9d41776301be251de1e6b13b6373f083d5f90 Mon Sep 17 00:00:00 2001 From: alexion Date: Fri, 28 Aug 2026 09:18:11 -0400 Subject: [PATCH] Revert "refactor(flake): use nixpkgs lib directly" This reverts commit 4a422599c7b6ba5114de948b52c67a0e8536a9de. --- flake.nix | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/flake.nix b/flake.nix index 65446a2..11ed1f0 100644 --- a/flake.nix +++ b/flake.nix @@ -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; }; }