dotfiles/ubuntu/up.sh
2019-08-04 20:15:07 +01:00

20 lines
484 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
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
curl https://nixos.org/nix/install | sh
. /home/cyryl/.nix-profile/etc/profile.d/nix.sh
export NIX_PATH=$HOME/.nix-defexpr/channels${NIX_PATH:+:}$NIX_PATH
ln -vfs $HOME/dev/dotfiles/nixos/home-other-os.nix $HOME/.config/nixpkgs/home.nix
home-manager switch