about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2022-11-10 13:37:06 +0000
committerDavid Morgan <djm_uk@protonmail.com>2022-11-10 13:37:06 +0000
commit6b29524fe8ee4f96be7dab091d7e83787c403e36 (patch)
treef0042247d676a7941036a6a1e3646893c881ec0d
parente46481a2b291dd8e96057825b3a36814ee3b3a78 (diff)
downloaddotfiles-6b29524fe8ee4f96be7dab091d7e83787c403e36.tar.gz
Allow choosing the home config to use
-rw-r--r--setup-home.sh3
1 files changed, 2 insertions, 1 deletions
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 '<home-manager>' -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 ~/