diff options
author | David Morgan <djm_uk@protonmail.com> | 2022-11-09 16:39:36 +0000 |
---|---|---|
committer | David Morgan <djm_uk@protonmail.com> | 2022-11-09 16:39:36 +0000 |
commit | f208e67d997b848036a51a3ac45166a5576a83c4 (patch) | |
tree | 0a6322e8dfb3c8fcda729fd072ce223e6812819a /setup-home.sh | |
parent | f7821dec97d26352bce9eac3a421b0a189c7e22a (diff) | |
download | dotfiles-f208e67d997b848036a51a3ac45166a5576a83c4.tar.gz |
Add home-setup.sh
Diffstat (limited to 'setup-home.sh')
-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 + |