Use path-relative locations for files

This commit is contained in:
Spotlight 2023-06-17 10:48:43 -05:00
parent b7e8802bcc
commit 8aa66e766e
Signed by: spotlight
GPG key ID: 874AA355B3209BDC
2 changed files with 9 additions and 6 deletions

View file

@ -102,7 +102,7 @@ in {
plugins = with pkgs; [ plugins = with pkgs; [
{ {
name = "expand-multiple-dots"; name = "expand-multiple-dots";
src = "${config.home.homeDirectory}/.dotfiles/zsh/expand-multiple-dots"; src = ./zsh/expand-multiple-dots;
file = "expand-multiple-dots.zsh"; file = "expand-multiple-dots.zsh";
} }
{ {
@ -153,11 +153,14 @@ in {
''; '';
}; };
home.file = {
# 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 = "${config.home.homeDirectory}/.dotfiles/p10k.zsh"; ".p10k.zsh".source = ./zsh/p10k.zsh;
# We'd also like to have the iTerm2 shell integration utilities in ~/.iterm2. # We'd also like to have the iTerm2 shell integration utilities in ~/.iterm2.
home.file.".iterm2".source = "${iterm2_shell_integration}/utilities"; ".iterm2".source = "${iterm2_shell_integration}/utilities";
};
programs.zsh.initExtra = '' programs.zsh.initExtra = ''
source $HOME/.p10k.zsh source $HOME/.p10k.zsh