Template:Editing Template: Difference between revisions
No edit summary |
mNo edit summary |
||
Line 3: | Line 3: | ||
Usage: | Usage: | ||
{{ | {{Editing Template|package_name=your_package_name}} | ||
Parameters: | Parameters: |
Revision as of 07:09, 21 June 2024
This template provides installation and configuration instructions for Nix packages.
Usage:
Installation
Using nix-shell
nix-shell -p your_package_name
System-Wide Installation on NixOS
environment.systemPackages = [ pkgs.your_package_name ];
After modifying your configuration, apply the changes by running:
sudo nixos-rebuild switch
User-Specific Installation with Home Manager
home.packages = [ pkgs.your_package_name ];
After updating your configuration, apply the changes by running:
home-manager switch
Configuration
Basic
programs.your_package_name = { enable = true; };
Advanced
programs.your_package_name = { enable = true; ... };
Tips and Tricks
Where to see a list of options?
The home manager options are defined in the following Home Manager Options Manual. The system-wide options are listed on ....
Troubleshooting
References
Parameters:
- package_name: The name of the package to install (required)