From b3f56fed8f86de57ce4d55fe9b1456f61fa662ca Mon Sep 17 00:00:00 2001 From: kossLAN Date: Thu, 14 Nov 2024 23:46:53 -0500 Subject: [PATCH] more overlay testing --- flake.nix | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/flake.nix b/flake.nix index 3b07569..ecd7edb 100644 --- a/flake.nix +++ b/flake.nix @@ -1,5 +1,5 @@ { - description = "My zsh dot files in flake format"; + description = "My ZSH dot files in flake format"; inputs = { nixpkgs.url = "github:NixOS/nixpkgs"; @@ -13,12 +13,11 @@ nixpkgs.lib.genAttrs ["x86_64-linux" "aarch64-linux"] (system: fn system nixpkgs.legacyPackages.${system}); - in { - # Overlay for using this in system configurations. - overlays.default = forEachSystem (system: (final: prev: { - zsh = self.packages.zsh.system.default; - })); + overlay = final: prev: { + zsh = self.packages.${prev.system}.default; + }; + in { # Package so you can test this out, without installing :3. packages = forEachSystem (system: pkgs: rec { zsh = import ./nix/wrapZsh.nix { @@ -28,5 +27,7 @@ default = zsh; }); + + overlays.default = overlay; }; }