Do not use hardcoded home directory path

Oops 😅
This commit is contained in:
Spotlight 2023-05-04 17:06:19 -05:00
parent 205bf5609a
commit d873127923
Signed by: spotlight
GPG key ID: 874AA355B3209BDC

View file

@ -52,7 +52,7 @@
# TODO: expand-multiple-dots.zsh should be bundled alone. # TODO: expand-multiple-dots.zsh should be bundled alone.
{ {
name = "exand-multiple-dots"; name = "exand-multiple-dots";
src = "/home/spotlight/.dotfiles/zsh"; src = "${config.home.homeDirectory}/.dotfiles/zsh";
file = "expand-multiple-dots.zsh"; file = "expand-multiple-dots.zsh";
} }
]; ];
@ -90,7 +90,7 @@
# We must source the p10k config. # We must source the p10k config.
# TODO: We should manage the config via programs.zsh.plugins. # TODO: We should manage the config via programs.zsh.plugins.
home.file.".p10k.zsh".source = "/home/spotlight/.dotfiles/p10k.zsh"; home.file.".p10k.zsh".source = "${config.home.homeDirectory}/.dotfiles/p10k.zsh";
programs.zsh.initExtra = '' programs.zsh.initExtra = ''
source $HOME/.p10k.zsh source $HOME/.p10k.zsh
@ -115,3 +115,4 @@
# Let Home Manager install and manage itself. # Let Home Manager install and manage itself.
programs.home-manager.enable = true; programs.home-manager.enable = true;
} }