Fix nix uses and removes interactions for apt

This commit is contained in:
Anton Volnuhin 2023-05-30 08:22:42 +03:00
parent 18276dc8c4
commit 6d37446928

View File

@ -19,7 +19,7 @@ $Green##########################################################################
{{ else if eq .chezmoi.osRelease.id "debian" "ubuntu" -}} {{ else if eq .chezmoi.osRelease.id "debian" "ubuntu" -}}
sudo apt update sudo apt update
sudo apt upgrade -y DEBIAN_FRONTEND=noninteractive sudo apt upgrade -y
{{ else if eq .chezmoi.osRelease.id "arch" -}} {{ else if eq .chezmoi.osRelease.id "arch" -}}
sudo pacman -Syu --noconfirm sudo pacman -Syu --noconfirm
@ -120,15 +120,15 @@ sleep 3
{{ if eq .chezmoi.osRelease.id "fedora" -}} {{ if eq .chezmoi.osRelease.id "fedora" -}}
sudo dnf install neovim fish $ACT_PACKAGES -y sudo dnf install neovim fish $ACT_PACKAGES -y
nix-env -iA nixpkgs.atuin nixpkgs.jump bash -c "nix-env -iA nixpkgs.atuin nixpkgs.jump"
{{ else if eq .chezmoi.osRelease.id "arch" -}} {{ else if eq .chezmoi.osRelease.id "arch" -}}
sudo pacman -Sy --noconfirm neovim fish atuin $ACT_PACKAGES sudo pacman -Sy --noconfirm neovim fish atuin $ACT_PACKAGES
nix-env -iA nixpkgs.jump bash -c "nix-env -iA nixpkgs.jump"
{{ else if eq .chezmoi.osRelease.id "debian" "ubuntu" -}} {{ else if eq .chezmoi.osRelease.id "debian" "ubuntu" -}}
sudo apt install fish $ACT_PACKAGES -y sudo apt install fish $ACT_PACKAGES -y
nix-env -iA nixpkgs.neovim nixpkgs.jump bash -c "nix-env -iA nixpkgs.neovim nixpkgs.jump"
if ! fish -c atuin &>/dev/null if ! fish -c atuin &>/dev/null
then then
bash <(curl https://raw.githubusercontent.com/ellie/atuin/main/install.sh) bash <(curl https://raw.githubusercontent.com/ellie/atuin/main/install.sh)