summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorseth <[email protected]>2023-12-24 04:38:37 -0500
committerseth <[email protected]>2023-12-24 05:18:20 -0500
commit4f120cbb8f1660224540434a7a37fc217f04d22b (patch)
tree4a873d893133f9d3e453f26316747fa741a734bb
parent908736c29b1f20cf51a240c73f2a6f505ff50ed3 (diff)
flake: use lib from pkgs
-rw-r--r--flake.nix15
1 files changed, 10 insertions, 5 deletions
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"