From 5642978ea007de969e13c50b24c789dcfe561e0a Mon Sep 17 00:00:00 2001 From: voidarc Date: Sat, 24 Oct 2026 15:33:17 +0100 Subject: [PATCH] added zsh module --- modules/features/zsh/default.nix | 23 +++++++++++++++++++++-- modules/hosts/newHost/newHost.nix | 1 + 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/modules/features/zsh/default.nix b/modules/features/zsh/default.nix index 3ede91e..eb77a5d 100644 --- a/modules/features/zsh/default.nix +++ b/modules/features/zsh/default.nix @@ -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; }; diff --git a/modules/hosts/newHost/newHost.nix b/modules/hosts/newHost/newHost.nix index fd057ae..cd0fd01 100644 --- a/modules/hosts/newHost/newHost.nix +++ b/modules/hosts/newHost/newHost.nix @@ -10,6 +10,7 @@ modules = with self.nixosModules; [ newHostConfiguration system + zsh ]; }; }