added zsh module
This commit is contained in:
@@ -1,4 +1,23 @@
|
||||
{inputs, ...}: {
|
||||
{
|
||||
inputs,
|
||||
moduleWithSystem,
|
||||
...
|
||||
}: {
|
||||
flake.nixosModules.zsh = moduleWithSystem ({
|
||||
pkgs,
|
||||
self',
|
||||
...
|
||||
}: {
|
||||
nixpkgs.overlays = [
|
||||
(final: prev: {
|
||||
zsh = self'.packages.zsh;
|
||||
})
|
||||
];
|
||||
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
};
|
||||
});
|
||||
perSystem = {
|
||||
pkgs,
|
||||
lib,
|
||||
@@ -7,7 +26,7 @@
|
||||
packages.zsh = inputs.wrappers.wrappers.zsh.wrap {
|
||||
inherit pkgs;
|
||||
zshAliases = {
|
||||
some = "nvim";
|
||||
some = lib.getExe pkgs.vim;
|
||||
ff = lib.getExe pkgs.fastfetch;
|
||||
cat = lib.getExe pkgs.bat;
|
||||
};
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
modules = with self.nixosModules; [
|
||||
newHostConfiguration
|
||||
system
|
||||
zsh
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user