blob: 44472f47b2fbebf88e0beccf2b81a932ea9776f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#!/usr/bin/env bash
set -xe
sh <(curl -L https://nixos.org/nix/install) --no-daemon
. "$HOME/.nix-profile/etc/profile.d/nix.sh"
nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
nix-channel --update
nix-shell '<home-manager>' -A install
. "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh"
ssh-keyscan github.com >> ~/.ssh/known_hosts
git clone git@github.com:compromyse/dotfiles $HOME/.config/home-manager/dotfiles
git clone git@github.com:tmux-plugins/tpm $HOME/.tmux/plugins/tpm
rm $HOME/.config/home-manager/home.nix
ln -s $HOME/.config/home-manager/dotfiles/machines/$CONFIG/home.nix $HOME/.config/home-manager/home.nix
sudo apt-get purge -y git
sudo apt-get autoremove -y
home-manager build
home-manager switch -b backup
rm $HOME/result
~/.tmux/plugins/tpm/bin/install_plugins
|