Still new to nixos/nix but learning everyday using version control is awesome for home-manager and configuration.nix in case something goes wrong.
That to say.
I noticed that nixos/nix is powerful i can use nix run or nix-shell for termporary stuff. nix profile add to install stuff.. i just unistalled all apps from main config and they are all in home-manager. what am i missing ?
There is nix-env -qaP to search package .. its so much to take in.. Should i keep reading more and testing or just do stuff i need and go from there?
There is so much to do and i really need some guidance on like the a b c of nix and where to go.
don’t use nix-env, don’t use profiles. for searching I’d recommend nix-locate from nix-index. Then if you want a 10x more convenient nix-shell for temporaries you can use comma. if you use something a lot add it to configuration.nix for system wide, or your home-manager module if it’s just for you. You can get pretty far with just that.
Its some random commands in a README that no one revised in years.
You can use nix run for use without install, or you can add it to your prefered package list. nix-index is even in nixpkgs, so you do not need to use the repo linked for anything but refering to its documentation or implementation.
What you probably need to notice in the readme is nix-index-database. Which has a flake if you want that, or modules if you dont. Solves the problem of keeping the database up to date.