diff options
| author | seth <[email protected]> | 2023-12-24 04:38:37 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-12-24 05:18:20 -0500 |
| commit | 4f120cbb8f1660224540434a7a37fc217f04d22b (patch) | |
| tree | 4a873d893133f9d3e453f26316747fa741a734bb /flake.nix | |
| parent | 908736c29b1f20cf51a240c73f2a6f505ff50ed3 (diff) | |
flake: use lib from pkgs
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -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" |
