Add zsh flake

This commit is contained in:
kossLAN 2024-11-14 22:37:06 -05:00
parent 74c9b5a49f
commit ec2df57d71
Signed by: kossLAN
SSH key fingerprint: SHA256:bdV0x+wdQHGJ6LgmstH3KV8OpWY+OOFmJcPcB0wQPV8
5 changed files with 169 additions and 0 deletions

27
flake.nix Normal file
View 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;
});
};
}