Jump to content

Template:Editing Template: Difference between revisions

From NixOS Wiki
Layer-09 (talk | contribs)
mNo edit summary
DoggoBit (talk | contribs)
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>{{delete|reason=Unused.}}{{undocumented}}
This template provides a guide for structuring new articles.
This template provides a guide for structuring new articles.
Usage:
Usage:
Line 35: Line 35:
=== Basic ===
=== Basic ===
<pre class="mw-editcontent">
<pre class="mw-editcontent">
programs.{{{package_name}}} = {
programs.{{package_name}} = {
     enable = true;
     enable = true;
};
};
Line 41: Line 41:
=== Advanced ===
=== Advanced ===
<pre class="mw-editcontent">
<pre class="mw-editcontent">
programs.{{{package_name}}} = {
programs.{{package_name}} = {
   enable = true;
   enable = true;
   ...
   ...

Latest revision as of 22:13, 7 June 2025

✖︎︎
This article is a deletion candidate. Unused. Further information may be found on the related discussion page.
{{?}}︎
Undocumented template. This template has no documentation, or its documentation is in a non-standard format. Please provide documentation about this template using the {{documentation}} helper template. Doing so will help other editors use your template, as reading template code can be unwieldy and time-consuming.

This template provides a guide for structuring new articles. Usage: {{Editing Template|package_name=your_package_name}}


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.{{package_name}} = {
    enable = true;
};

Advanced

programs.{{package_name}} = {
  enable = true;
  ...
};

Tips and Tricks

Where to see a list of options?

Troubleshooting

References