diff options
Diffstat (limited to 'setup-home.sh')
-rwxr-xr-x | setup-home.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/setup-home.sh b/setup-home.sh index 4a417e6..f44f0d5 100755 --- a/setup-home.sh +++ b/setup-home.sh @@ -1,5 +1,7 @@ #!/bin/sh +[ -f ~/.config/sops/age/keys.txt ] || ( echo "Age key not present, aborting." ; exit 1 ) + [ -e ~/dotfiles ] || git clone git@codeberg.org:djm/dotfiles.git if [ -x "$(command -v nixos-version)" ]; then @@ -12,6 +14,8 @@ else nix-channel --add https://nixos.org/channels/nixpkgs-unstable unstable fi +nix-channel --add https://github.com/Mic92/sops-nix/archive/master.tar.gz sops-nix + nix-channel --update export NIX_PATH=$HOME/.nix-defexpr/channels:/nix/var/nix/profiles/per-user/root/channels${NIX_PATH:+:$NIX_PATH} @@ -22,8 +26,6 @@ HOME_CONF="$HOME/dotfiles/nix-conf/home/${CONF:-${HOST}}.nix" ln -sf ~/dotfiles/.p10k.zsh ~/ ln -sf ~/dotfiles/.emacs.d ~/ -echo -n $EMAIL > ~/email.txt - home-manager switch if [ "$(uname 2> /dev/null)" = "Darwin" ]; then |