2017-12-03 09:51:58 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -v
|
|
|
|
|
2019-05-23 13:27:43 +01:00
|
|
|
sudo apt update
|
|
|
|
sudo apt -y upgrade
|
2019-08-04 20:15:07 +01:00
|
|
|
sudo apt -y --fix-missing install apt-file aptitude git curl flatpak
|
2019-05-24 11:08:02 +01:00
|
|
|
|
|
|
|
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
2019-05-23 15:08:39 +01:00
|
|
|
|
2019-08-04 20:15:07 +01:00
|
|
|
curl https://nixos.org/nix/install | sh
|
2017-12-03 09:51:58 +00:00
|
|
|
|
2019-08-16 15:14:37 +01:00
|
|
|
source /home/cyryl/.nix-profile/etc/profile.d/nix.sh
|
2019-08-04 20:15:07 +01:00
|
|
|
export NIX_PATH=$HOME/.nix-defexpr/channels${NIX_PATH:+:}$NIX_PATH
|
2017-12-03 09:51:58 +00:00
|
|
|
|
2019-08-16 15:14:37 +01:00
|
|
|
nix-channel --add https://github.com/rycee/home-manager/archive/release-19.03.tar.gz home-manager
|
|
|
|
nix-channel --update
|
|
|
|
|
|
|
|
nix-shell '<home-manager>' -A install
|
|
|
|
|
2019-08-04 20:15:07 +01:00
|
|
|
ln -vfs $HOME/dev/dotfiles/nixos/home-other-os.nix $HOME/.config/nixpkgs/home.nix
|
2017-12-03 09:51:58 +00:00
|
|
|
|
2019-08-04 20:15:07 +01:00
|
|
|
home-manager switch
|
2017-12-03 09:51:58 +00:00
|
|
|
|