From 8aa66e766e68d292010249ccff594ff2712b68ae Mon Sep 17 00:00:00 2001 From: Spotlight Date: Sat, 17 Jun 2023 10:48:43 -0500 Subject: [PATCH] Use path-relative locations for files --- home.nix | 15 +++++++++------ p10k.zsh => zsh/p10k.zsh | 0 2 files changed, 9 insertions(+), 6 deletions(-) rename p10k.zsh => zsh/p10k.zsh (100%) diff --git a/home.nix b/home.nix index db8594c..7baf599 100644 --- a/home.nix +++ b/home.nix @@ -102,7 +102,7 @@ in { plugins = with pkgs; [ { name = "expand-multiple-dots"; - src = "${config.home.homeDirectory}/.dotfiles/zsh/expand-multiple-dots"; + src = ./zsh/expand-multiple-dots; file = "expand-multiple-dots.zsh"; } { @@ -153,11 +153,14 @@ in { ''; }; - # We must source the p10k config. - # TODO: We should manage the config via programs.zsh.plugins. - home.file.".p10k.zsh".source = "${config.home.homeDirectory}/.dotfiles/p10k.zsh"; - # We'd also like to have the iTerm2 shell integration utilities in ~/.iterm2. - home.file.".iterm2".source = "${iterm2_shell_integration}/utilities"; + home.file = { + # We must source the p10k config. + # TODO: We should manage the config via programs.zsh.plugins. + ".p10k.zsh".source = ./zsh/p10k.zsh; + # We'd also like to have the iTerm2 shell integration utilities in ~/.iterm2. + ".iterm2".source = "${iterm2_shell_integration}/utilities"; + }; + programs.zsh.initExtra = '' source $HOME/.p10k.zsh diff --git a/p10k.zsh b/zsh/p10k.zsh similarity index 100% rename from p10k.zsh rename to zsh/p10k.zsh