Use official NIX installer and stable home-manager
This commit is contained in:
3
home.nix
3
home.nix
@@ -18,7 +18,7 @@
|
||||
# Packages to install:
|
||||
|
||||
# GUI Apps
|
||||
obsidian
|
||||
logseq
|
||||
signal-desktop
|
||||
fragments
|
||||
element-desktop
|
||||
@@ -27,6 +27,7 @@
|
||||
timeshift
|
||||
eyedropper
|
||||
gnome-obfuscate
|
||||
gnome-podcasts
|
||||
|
||||
# Note: Game packages like Steam and Prism should be installed through flatpak, or at system level.
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ fi
|
||||
if ! nix --version &>/dev/null; then
|
||||
echo -e "${YELLOW}[E] Nix not found.${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
|
||||
echo -e "${GREEN}[I] Installed Nix.${ENDCOLOR}"
|
||||
fi
|
||||
@@ -48,7 +48,7 @@ fi
|
||||
# ============== HOME MANAGER ==============
|
||||
|
||||
# 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-shell '<home-manager>' -A install
|
||||
|
||||
|
||||
Reference in New Issue
Block a user