switch from snap to nix
This commit is contained in:
parent
4fc36f2b99
commit
61cead35e6
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/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)
|
USER=$(whoami)
|
||||||
|
|
||||||
################################################################################################################################
|
################################################################################################################################
|
||||||
@ -59,6 +59,13 @@ echo
|
|||||||
echo "Changing shell to fish for user $USER"
|
echo "Changing shell to fish for user $USER"
|
||||||
sudo chsh -s $(which fish) $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
|
sudo dnf install neovim -y
|
||||||
|
|
||||||
{{ else if eq .chezmoi.osRelease.id "debian" "ubuntu" -}}
|
{{ else if eq .chezmoi.osRelease.id "debian" "ubuntu" -}}
|
||||||
## Install neovim
|
nix-env -iA nixpkgs.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)
|
|
||||||
|
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
@ -102,12 +88,13 @@ sudo chsh -s $(which fish) $USER
|
|||||||
|
|
||||||
################################################################################################################################
|
################################################################################################################################
|
||||||
##
|
##
|
||||||
## Install jump
|
## Install atuin and jump
|
||||||
##
|
##
|
||||||
################################################################################################################################
|
################################################################################################################################
|
||||||
|
|
||||||
{{ if eq .chezmoi.os "linux" -}}
|
{{ if eq .chezmoi.os "linux" -}}
|
||||||
fish -c "sudo snap refresh"
|
## install atuin
|
||||||
fish -c "sudo snap install jump"
|
nix-env -iA nixpkgs.neovim
|
||||||
|
nix-env -iA nixpkgs.jump
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user