dotfiles/ubuntu/up.sh
2020-04-18 14:40:52 +01:00

27 lines
723 B
Bash
Executable file

#!/bin/bash
set -e
set -v
sudo apt update
sudo apt -y upgrade
sudo apt -y --fix-missing install apt-file aptitude git curl flatpak i3 fonts-font-awesome
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
curl https://nixos.org/nix/install | sh
source /home/cyryl/.nix-profile/etc/profile.d/nix.sh
export NIX_PATH=$HOME/.nix-defexpr/channels${NIX_PATH:+:}$NIX_PATH
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
ln -vfs $HOME/dev/dotfiles/nixos/home-other-os.nix $HOME/.config/nixpkgs/home.nix
home-manager switch
sudo chsh -s /home/cyryl/.nix-profile/bin/zsh cyryl