I switched from Mint to NixOS and installed a couple of apps through the terminal, but the graphical package installer doesn't seem to show apps. Did I set something up wrong, and what's the normal way to install software here?
How do I install apps on NixOS as a beginner?
Answers
That doesn't necessarily mean your installation is broken. The usual NixOS approach is to describe the packages you want in a configuration file, then rebuild the system to apply the change.
Start with /etc/nixos/configuration.nix. Look for environment.systemPackages and add package names to its existing list, then run sudo nixos-rebuild switch. For example, you can add firefox or libreoffice to that list. Keep the existing syntax and packages in place rather than replacing the whole file.
If the rebuild fails, read the error and check the spelling and brackets. The change won't be applied until a build succeeds. NixOS also keeps earlier system generations, which you can select from the boot menu if a change causes trouble.
Reply to this answer
You don't have to put every experiment in the system config. Nix can also install packages into a user's profile or run software temporarily. Those are separate from the system package list, so check which method a guide uses before following it.
For a beginner, keeping the apps you want on the machine in configuration.nix is a nice starting point. Save a copy of the file and make small changes so it's easier to spot what went wrong.
Reply to this answer
A graphical software center can work with Flatpak, but whether it shows anything depends on the software center and how Flatpak is configured. It won't necessarily browse or manage Nix packages. Check which app you opened and what software sources it supports before assuming the NixOS install went wrong.
Flatpak apps are managed separately from the packages in your NixOS configuration, so don't expect adding or removing a Nix package to manage those apps too.
Reply to this answer
Give the official NixOS beginner documentation a look, especially the sections on configuration and rebuilding. The workflow takes some getting used to coming from a conventional package manager, but you don't need to learn flakes or redesign your whole setup on day one.
Try adding one package, rebuild, and see what changed. Once that makes sense, services and other system options follow a similar configuration pattern.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Tavlino.3x:
Package names aren't always identical to the names shown in an app menu. The NixOS package search can help you find the right name for your configured package collection.