From 6b29524fe8ee4f96be7dab091d7e83787c403e36 Mon Sep 17 00:00:00 2001 From: David Morgan Date: Thu, 10 Nov 2022 13:37:06 +0000 Subject: Allow choosing the home config to use --- setup-home.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup-home.sh b/setup-home.sh index d0ffca0..29c621d 100644 --- a/setup-home.sh +++ b/setup-home.sh @@ -8,7 +8,8 @@ nix-channel --update export NIX_PATH=$HOME/.nix-defexpr/channels:/nix/var/nix/profiles/per-user/root/channels${NIX_PATH:+:$NIX_PATH} nix-shell '' -A install -[ -f ~/dotfiles/nix-conf/home/$HOST.nix ] && ln -sf ~/dotfiles/nix-conf/home/$HOST.nix ~/.config/nixpkgs/home.nix +HOME_CONF="$HOME/dotfiles/nix-conf/home/${CONF:-${HOST}}.nix" +[ -f $HOME_CONF ] && ln -sf $HOME_CONF ~/.config/nixpkgs/home.nix ln -sf ~/dotfiles/.p10k.zsh ~/ ln -sf ~/dotfiles/.emacs.d ~/ -- cgit 1.4.1-2-gfad0