diff --git a/.gitignore b/.gitignore index e03dfcff..edf842e9 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ .Trash BrewFile.lock.json switch.log +.vscode diff --git a/README.md b/README.md index 0fdd5b1c..d261d0df 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ The install script works on Linux and macOS. All configuration is done through home-manager. If you want to use this repository, I recommend forking it and editing home.nix to your liking. -**Run `./install.sh`.** +Install: `sh <(curl -L https://raw.githubusercontent.com/TrudeEH/dotfiles/main/install.sh)` Run `home-manager switch` to rebuild the config after changing it. diff --git a/home.nix b/home.nix index 826f3b8a..31a0f536 100644 --- a/home.nix +++ b/home.nix @@ -19,6 +19,8 @@ fragments pitivi pika-backup + element-desktop + openrgb neofetch unzip @@ -322,6 +324,9 @@ jnoortheen.nix-ide ritwickdey.liveserver github.vscode-pull-request-github + ms-toolsai.jupyter + ms-python.python + arrterian.nix-env-selector ]); # Settings diff --git a/install.sh b/install.sh index 355b438c..d6839ac1 100755 --- a/install.sh +++ b/install.sh @@ -22,11 +22,18 @@ detectDistro() { d=$(detectDistro) if [[ $d == "Debian" ]]; then - sudo apt install -y curl + sudo apt install -y curl git elif [[ $d == "Arch" ]]; then - sudo pacman -Sy curl + sudo pacman -Sy curl git elif [[ $d == "Fedora" ]]; then - sudo dnf install curl + sudo dnf install curl git +fi + +if [ $(pwd) != "$HOME/dotfiles" ]; then + cd $HOME + git clone https://github.com/TrudeEH/dotfiles + cd dotfiles + bash install.sh fi if ! nix --version &>/dev/null; then