Files
athens/nix/users/walkah/home.nix
2024-12-07 20:46:15 -05:00

31 lines
655 B
Nix

{ lib, pkgs, ... }:
{
home = {
packages = with pkgs; [
chezmoi
bat
direnv
eza
fd
fzf
git
htop
jq
starship
tmux
];
activation.chezmoi = lib.hm.dag.entryAfter [ "installPackages" ] ''
export SSL_CERT_FILE="${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
export PATH="${pkgs.git}/bin:${pkgs.openssh}/bin:$PATH"
if [ ! -d $HOME/.local/share/chezmoi ]; then
$DRY_RUN_CMD ${pkgs.chezmoi}/bin/chezmoi init --apply walkah/dotfiles
else
$DRY_RUN_CMD ${pkgs.chezmoi}/bin/chezmoi update --apply
fi
'';
stateVersion = "24.05";
};
}