Template:Editing Template

From NixOS Wiki
Revision as of 07:00, 21 June 2024 by Layer-09 (talk | contribs) (Created the default template)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Installation

Using nix-shell

nix-shell -p package_name

System-Wide Installation on NixOS

environment.systemPackages = [
  pkgs.package_name
];

After modifying your configuration, apply the changes by running:

sudo nixos-rebuild switch

User-Specific Installation with Home Manager

home.packages = [ 
  pkgs.package_name 
];

After updating your configuration, apply the changes by running:

home-manager switch

Configuration

Basic

programs.package_name = {
    enable = true;
};

Advanced

programs.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 at ....

Troubleshooting

References