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; }; }