dotfiles/nixos/up.sh

34 lines
880 B
Bash
Raw Normal View History

2019-03-26 09:55:52 +00:00
#!/usr/bin/env bash
set -e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
DIR=`realpath "$DIR/../"`
CURL="curl -sSfL"
if [[ -z $DIR ]]; then
echo "please set DIR"
exit 1
fi
DIR=`realpath $DIR`
echo "using $DIR as the top level directory"
cd $DIR
git submodule update --init --recursive
2019-07-05 23:11:21 +01:00
2019-03-26 09:55:52 +00:00
mkdir -p ~/.config/Code/User
ln -vfs "$DIR/.config/Code/User/settings.json" ~/.config/Code/User/settings.json
ln -vfs "$DIR/.config/Code/User/keybindings.json" ~/.config/Code/User/keybindings.json
mkdir -p ~/.local/share/applications
cp -v "$DIR/keeweb.desktop" ~/.local/share/applications/
ln -vfs "$DIR/tools" ~/
echo "all links done"
2020-02-16 10:24:08 +00:00
sudo nix-channel --add https://nixos.org/channels/nixos-19.09-small nixos
2019-11-01 20:50:41 +00:00
nix-channel --add https://github.com/rycee/home-manager/archive/release-19.09.tar.gz home-manager
nix-channel --update
nix-shell '<home-manager>' -A install
2019-03-26 09:55:52 +00:00