From f208e67d997b848036a51a3ac45166a5576a83c4 Mon Sep 17 00:00:00 2001 From: David Morgan Date: Wed, 9 Nov 2022 16:39:36 +0000 Subject: Add home-setup.sh --- setup-home.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 setup-home.sh 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 '' -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 + -- cgit 1.4.1-2-gfad0