about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2022-11-09 16:39:36 +0000
committerDavid Morgan <djm_uk@protonmail.com>2022-11-09 16:39:36 +0000
commitf208e67d997b848036a51a3ac45166a5576a83c4 (patch)
tree0a6322e8dfb3c8fcda729fd072ce223e6812819a
parentf7821dec97d26352bce9eac3a421b0a189c7e22a (diff)
downloaddotfiles-f208e67d997b848036a51a3ac45166a5576a83c4.tar.gz
Add home-setup.sh
-rw-r--r--setup-home.sh16
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
+
4'>34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54