dotfiles/ubuntu/up.sh

28 lines
704 B
Bash
Raw Normal View History

#!/bin/bash
set -e
set -v
sudo apt update
sudo apt -y upgrade
2020-04-17 23:08:08 +01:00
sudo apt -y --fix-missing install apt-file aptitude git curl flatpak i3
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
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
2020-04-18 12:11:27 +01:00
nix-channel --add https://github.com/rycee/home-manager/archive/release-20.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
2019-08-04 20:15:07 +01:00
home-manager switch
sudo chsh -s /home/cyryl/.nix-profile/bin/zsh cyryl