mirror of
https://github.com/kossLAN/zsh-flake.git
synced 2025-11-05 02:09:49 -05:00
Add zsh flake
This commit is contained in:
parent
74c9b5a49f
commit
ec2df57d71
5 changed files with 169 additions and 0 deletions
27
flake.nix
Normal file
27
flake.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
description = "My zsh dot files in flake format";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs";
|
||||
};
|
||||
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
}: let
|
||||
forEachSystem = fn:
|
||||
nixpkgs.lib.genAttrs
|
||||
["x86_64-linux" "aarch64-linux"]
|
||||
(system: fn system nixpkgs.legacyPackages.${system});
|
||||
in {
|
||||
# Define a package for your project
|
||||
packages = forEachSystem (system: pkgs: rec {
|
||||
zsh = import ./nix/wrapZsh.nix {
|
||||
inherit pkgs;
|
||||
lib = nixpkgs.lib;
|
||||
};
|
||||
|
||||
default = zsh;
|
||||
});
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue