fix: use zsh.initExtra for dotfiles config (no home.file conflict)

This commit is contained in:
2026-06-20 16:25:50 -04:00
parent 256979e6e5
commit 3ce550691c

View File

@@ -10,9 +10,6 @@ in {
programs.home-manager.enable = true;
home.file = {
# zsh
".zshrc".source = "${dotfiles}/zsh/.zshrc";
# tmux
".tmux.conf".source = "${dotfiles}/tmux/.tmux.conf";
@@ -53,6 +50,12 @@ in {
else "${dotfiles}/hypr/.config/hypr/hosts/laptop.conf";
};
programs.bash.enable = true;
programs.zsh = {
enable = true;
initExtra = builtins.readFile "${dotfiles}/zsh/.zshrc";
};
home.packages = with pkgs; [
git zsh tmux starship
neovim kitty
@@ -66,9 +69,6 @@ in {
pavucontrol
];
programs.bash.enable = true;
programs.zsh.enable = true;
xdg.userDirs = {
enable = true;
createDirectories = true;