diff options
-rw-r--r-- | setup-home.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/setup-home.sh b/setup-home.sh new file mode 100644 index 0000000..d75b150 --- /dev/null +++ b/setup-home.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +git clone git@codeberg.org:djm/dotfiles.git + +nix-channel --add https://github.com/nix-community/home-manager/archive/release-$(nixos-version | cut -d. -f1-2).tar.gz home-manager +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 +ln -sf ~/dotfiles/.p10k.zsh ~/ +ln -sf ~/dotfiles/.emacs.d ~/ + +home-manager switch + |