Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Nix Package Manager (NixOS)
Hey all..

Yet again my good friend and Linux enthusiast ChriTitus has brought another cool Package Manager this time called #Nix.

Seems to be cool and easy to Install and use. Here's the written guide ported directly from his ChrisTitusTech site..

- Installation : (Source)

Install Nix using this curl command
curl -L | sh

Note: Recommend multi-user install if it prompts for it.

Yep it's this simple Wink

- Finding Packages :

We recommend using their website to find packages to install, but make sure to click the “unstable” button as NixOS stable is a Linux Distribution few use.

Or from terminal you can list all packages with nix-env -qaP then just grep what you are looking for. Example: nix-env -qaP | grep hugo

- Usage :

Here is the basic usage of nix, most revolve around the nix-env command. These are manually managed and require user intervention
  • List Installed packages nix-env -q
  • Install Packages nix-env -iA nixpkgs.packagename
  • Erase Packages nix-env -e packagename
  • Update All Packages nix-env -u
  • Update Specific Packages nix-env -u packagename
  • Hold Specific Package nix-env --set-flag keep true packagename
  • List Backups (Generations) nix-env --list-generations
  • Rollback to Last Backup nix-env --rollback
  • Rollback to Specific Generation nix-env --switch-generation #

- Help and Manual :

Official Manual is here. You can also get more details with man nix or man nix-env

- Troubleshooting :

Programs not showing up in start menu

NIX stores all the .desktop files for the programs it installs @ /home/$USER/.nix-profile/share/applications/ and a simple symlink will fix them not showing up in your start menu.
ln -s /home/$USER/.nix-profile/share/applications/* /home/$USER/.local/share/applications/

~ XeroLinux Toolkit Maintainer ~
I do try to help where I can, when I can.
I do this on my own, so I might not have all the answers.
[Image: K7U76Mv.png]
Very nice. Will be great for my Debian install. Make finding and installing less of a pain. You would think with as long as Debian has been around finding and installing software would be far more unified and not as piece mill as it is.

Possibly Related Threads…
Thread Author Replies Views Last Post
  Warehouse Flatpak Manager DarkXero 0 327 12-25-2023, 10:14 PM
Last Post: DarkXero
  Bauh Package Manager DarkXero 1 1,460 09-11-2023, 01:48 PM
Last Post: Cap_Junky
  Brew, The Forgotten Package Manager DarkXero 1 1,474 08-08-2022, 07:59 PM
Last Post: Locutus
Wink Convert KDE Plasma into a tilling window manager theCode-Breaker 0 1,609 12-16-2021, 08:05 PM
Last Post: theCode-Breaker

Forum Jump:

Users browsing this thread: 1 Guest(s)