Update roles/home/zsh.nix

This commit is contained in:
Giulio De Pasquale 2024-11-14 11:17:26 +00:00
parent e084734e4a
commit 2db9c318a1

View File

@ -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
'';
};
}