dotfiles/home.nix

31 lines
638 B
Nix

{ lib, pkgs, ... }: {
programs.home-manager.enable = true;
home = {
username = "walkah";
homeDirectory = if pkgs.stdenv.isDarwin then "/Users/walkah" else "/home/walkah";
packages = with pkgs; [
chezmoi
bat
direnv
eza
fd
fzf
git
htop
jq
starship
tmux
];
activation.chezmoi = lib.hm.dag.entryAfter [ "installPackages" ] ''
export PATH="${pkgs.git}/bin:$PATH"
if [ ! -d $HOME/.local/share/chezmoi ]; then
$DRY_RUN_CMD ${pkgs.chezmoi}/bin/chezmoi init --apply walkah/dotfiles
fi
'';
stateVersion = "24.05";
};
}