mirror of
https://github.com/kossLAN/zsh-flake.git
synced 2025-11-05 02:09:49 -05:00
more overlay testing
This commit is contained in:
parent
30c3b61717
commit
b3f56fed8f
1 changed files with 7 additions and 6 deletions
13
flake.nix
13
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;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue