From 2db9c318a168d4a343f344f2678338dd1c4d3f29 Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Thu, 14 Nov 2024 11:17:26 +0000 Subject: [PATCH] Update roles/home/zsh.nix --- roles/home/zsh.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/home/zsh.nix b/roles/home/zsh.nix index 0d7410f..8f272b0 100644 --- a/roles/home/zsh.nix +++ b/roles/home/zsh.nix @@ -1,5 +1,8 @@ { pkgs, lib, ... }: +let + commitFunctions = pkgs.writeTextDir "bin" (builtins.readFile ./scripts/commits.sh); +in { home.packages = with pkgs; [ any-nix-shell ]; @@ -22,6 +25,8 @@ any-nix-shell zsh --info-right | source /dev/stdin source ${pkgs.nix-index}/etc/profile.d/command-not-found.sh ${if pkgs.stdenv.isDarwin then "export PATH=$PATH:/opt/homebrew/bin" else ""} + + source ${commitFunctions}/bin/commits.sh ''; }; }