You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Very new to Nix, love this repository but had a hard time figuring out how to just add packages to the global configuration.nix. I saw there was a space for a howto doc that wasn't created so I decided to add some examples.
The text was updated successfully, but these errors were encountered:
You'll want to do a bunch of googling on different setups since there are multiple ways to get your programs installed. I'll give a quick rundown here but this is more a question for Nix communities directly and not specific to NixOS-WSL.
For global system-wide packages that will exist for every user, every system, etc you can use environment.systemPackages inside your etc/nixos/configuration.nix file
example:
# System Packagesenvironment.systemPackages=withpkgs;[zshwgethtoptmux];
When you sudo nixos-rebuild switch these will be included systemwide.
Another way is to simply enable a program that's in nixpkgs, ie: programs.zsh.enable = true. This can be done in your general configuration, or more preferably within your home-manager config so it applies to your specific user and not the entire system.
Very new to Nix, love this repository but had a hard time figuring out how to just add packages to the global
configuration.nix
. I saw there was a space for a howto doc that wasn't created so I decided to add some examples.The text was updated successfully, but these errors were encountered: