From 4f120cbb8f1660224540434a7a37fc217f04d22b Mon Sep 17 00:00:00 2001 From: seth Date: Sun, 24 Dec 2023 04:38:37 -0500 Subject: flake: use lib from pkgs --- flake.nix | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index dd88aa0..7ceda4d 100644 --- a/flake.nix +++ b/flake.nix @@ -13,8 +13,6 @@ self, ... }: let - inherit (nixpkgs) lib; - systems = [ "x86_64-linux" "aarch64-linux" @@ -22,10 +20,15 @@ "aarch64-darwin" ]; - forAllSystems = fn: lib.genAttrs systems (sys: fn nixpkgs.legacyPackages.${sys}); + forAllSystems = fn: nixpkgs.lib.genAttrs systems (sys: fn nixpkgs.legacyPackages.${sys}); in { packages = forAllSystems ( - pkgs: let + { + lib, + pkgs, + system, + ... + }: let overlay = lib.fix (final: self.overlays.default final pkgs); /* @@ -56,13 +59,15 @@ inherit description; }; in - lib.mapAttrs toTemplate { + builtins.mapAttrs toTemplate { basic = "minimal boilerplate for my flakes"; full = "big template for complex flakes (using flake-parts)"; nixos = "minimal boilerplate for flake-based nixos configuration"; }; githubWorkflow.matrix = let + inherit (nixpkgs) lib; + ciSystems = [ "x86_64-linux" "aarch64-linux" -- cgit v1.2.3