diff --git a/run_once_before_install_main_deps.sh.tmpl b/run_once_before_install_main_deps.sh.tmpl index a564454..8c34a25 100644 --- a/run_once_before_install_main_deps.sh.tmpl +++ b/run_once_before_install_main_deps.sh.tmpl @@ -1,5 +1,5 @@ #!/usr/bin/env bash -BASE_PACKAGES="kitty-terminfo gpg git curl wget ripgrep fd-find unzip python3-pip htop fzf bat snapd" +BASE_PACKAGES="kitty-terminfo gpg git curl wget ripgrep fd-find unzip python3-pip htop fzf bat" USER=$(whoami) ################################################################################################################################ @@ -59,6 +59,13 @@ echo echo "Changing shell to fish for user $USER" sudo chsh -s $(which fish) $USER +################################################################################################################################ +## +## Install nix packet manager +## +################################################################################################################################ + +sudo bash <(curl -L https://nixos.org/nix/install) --daemon ################################################################################################################################ @@ -72,28 +79,7 @@ sudo chsh -s $(which fish) $USER sudo dnf install neovim -y {{ else if eq .chezmoi.osRelease.id "debian" "ubuntu" -}} - ## Install neovim - sudo snap install nvim --classic - {{ end -}} -{{ end -}} - - - -################################################################################################################################ -## -## Install atuin -## -################################################################################################################################ - -{{ if eq .chezmoi.os "linux" -}} - {{ if eq .chezmoi.osRelease.id "fedora" -}} - ## install atuin with cargo - sudo dnf install cargo -y - cargo install atuin - - {{ else -}} - ## install atuin with default install script - bash <(curl https://raw.githubusercontent.com/ellie/atuin/main/install.sh) + nix-env -iA nixpkgs.neovim {{ end -}} {{ end -}} @@ -102,12 +88,13 @@ sudo chsh -s $(which fish) $USER ################################################################################################################################ ## -## Install jump +## Install atuin and jump ## ################################################################################################################################ {{ if eq .chezmoi.os "linux" -}} - fish -c "sudo snap refresh" - fish -c "sudo snap install jump" + ## install atuin + nix-env -iA nixpkgs.neovim + nix-env -iA nixpkgs.jump {{ end -}}