From 4a422599c7b6ba5114de948b52c67a0e8536a9de Mon Sep 17 00:00:00 2001 From: alexion Date: Fri, 28 Aug 2026 09:10:11 -0400 Subject: [PATCH] refactor(flake): use nixpkgs lib directly --- flake.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index 11ed1f0..65446a2 100644 --- a/flake.nix +++ b/flake.nix @@ -75,8 +75,10 @@ outputs = { self, nixpkgs, ... }@inputs: let - inherit (nixpkgs) lib; - flake = import ./flake { inherit lib inputs self; }; + flake = import ./flake { + lib = nixpkgs.lib; + inherit inputs self; + }; in { # Every host under hosts/ is discovered and built. @@ -96,12 +98,12 @@ }; # `nix flake check` builds every discovered host toplevel. - checks.x86_64-linux = lib.mapAttrs ( + checks.x86_64-linux = nixpkgs.lib.mapAttrs ( name: host: if host.config.warnings == [ ] then host.config.system.build.toplevel else - throw "Host ${name} has evaluation warnings:\n${lib.concatStringsSep "\n" host.config.warnings}" + throw "Host ${name} has evaluation warnings:\n${nixpkgs.lib.concatStringsSep "\n" host.config.warnings}" ) self.nixosConfigurations; }; }