Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Latest commit

 

History

History
47 lines (29 loc) · 1.41 KB

extra-scripts.md

File metadata and controls

47 lines (29 loc) · 1.41 KB

Intro

My scripts already run these commands automaticly but if you use a different installer, you can run these scripts separately

Commands

add experimental-features = nix-command flakes to /etc/nix/nix.confor ~/.config/nix/nix.conf

Multiuser

WARNING: THIS OVERWRITES THE CONFIG SO ANYTHING THAT IS ADDED TO IT IS LOST

sudo rm -f /etc/nix/nix.conf ; sudo wget -P /etc/nix https://raw.githubusercontent.com/dnkmmr69420/nix-installer-scripts/main/other-files/nix.conf

Singeluser

mkdir -p ~/.config/nix ; echo "experimental-features = nix-command flakes" >> ~/.config/nix/nix.conf

Have nix .desktop app icons show up in your DE

It makes /etc/profile.d/nix-app-icons.sh which contains XDG_DATA_DIRS="$HOME/.nix-profile/share:/nix/var/nix/profiles/default/share:$XDG_DATA_DIRS"

Multiuser

sudo rm -f /etc/profile.d/nix-app-icons.sh ; sudo wget -P /etc/profile.d https://raw.githubusercontent.com/dnkmmr69420/nix-installer-scripts/main/other-files/nix-app-icons.sh

Singleuser

add this to the end of ~/.bashrc

XDG_DATA_DIRS="$HOME/.nix-profile/share:/nix/var/nix/profiles/default/share:$XDG_DATA_DIRS"

Have sudo detect nix commands

This adds all the nix commands like nix, nix-shell, nix-env, to /usr/local/bin

bash <(curl -s https://raw.githubusercontent.com/dnkmmr69420/nix-installer-scripts/main/other-scripts/nix-linker.sh)