more overlay testing

This commit is contained in:
kossLAN 2024-11-14 23:46:53 -05:00
parent 30c3b61717
commit b3f56fed8f
Signed by: kossLAN
SSH key fingerprint: SHA256:bdV0x+wdQHGJ6LgmstH3KV8OpWY+OOFmJcPcB0wQPV8

View file

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