Use official NIX installer and stable home-manager

This commit is contained in:
2024-04-10 17:44:06 +01:00
parent 241e4abb61
commit 8fc78de479
2 changed files with 4 additions and 3 deletions

View File

@@ -18,7 +18,7 @@
# Packages to install: # Packages to install:
# GUI Apps # GUI Apps
obsidian logseq
signal-desktop signal-desktop
fragments fragments
element-desktop element-desktop
@@ -27,6 +27,7 @@
timeshift timeshift
eyedropper eyedropper
gnome-obfuscate gnome-obfuscate
gnome-podcasts
# Note: Game packages like Steam and Prism should be installed through flatpak, or at system level. # Note: Game packages like Steam and Prism should be installed through flatpak, or at system level.

View File

@@ -40,7 +40,7 @@ fi
if ! nix --version &>/dev/null; then if ! nix --version &>/dev/null; then
echo -e "${YELLOW}[E] Nix not found.${ENDCOLOR}" echo -e "${YELLOW}[E] Nix not found.${ENDCOLOR}"
echo -e "${GREEN}[+] Installing the Nix package manager...${ENDCOLOR}" echo -e "${GREEN}[+] Installing the Nix package manager...${ENDCOLOR}"
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install sh <(curl -L https://nixos.org/nix/install) --daemon
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh . /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
echo -e "${GREEN}[I] Installed Nix.${ENDCOLOR}" echo -e "${GREEN}[I] Installed Nix.${ENDCOLOR}"
fi fi
@@ -48,7 +48,7 @@ fi
# ============== HOME MANAGER ============== # ============== HOME MANAGER ==============
# Install # Install
nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager nix-channel --add https://github.com/nix-community/home-manager/archive/release-23.11.tar.gz home-manager
nix-channel --update nix-channel --update
nix-shell '<home-manager>' -A install nix-shell '<home-manager>' -A install