Template:Editing Template: Difference between revisions
 Created the default template  | 
				No edit summary  | 
				||
| (10 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
<noinclude>{{delete|reason=Unused.}}{{undocumented}}  | |||
This template provides a guide for structuring new articles.  | |||
Usage:  | |||
{{ic|<nowiki>{{Editing Template|package_name=your_package_name}}</nowiki>}}  | |||
{{Editing Template|package_name=your_package_name}}  | |||
</noinclude>  | |||
<includeonly>  | |||
== Installation ==  | == Installation ==  | ||
=== Using nix-shell ===  | === Using nix-shell ===  | ||
{{#tag:pre|  | |||
nix-shell -p package_name  | nix-shell -p {{{package_name}}}  | ||
}}  | |||
=== System-Wide Installation on NixOS ===  | === System-Wide Installation on NixOS ===  | ||
{{#tag:pre|  | |||
environment.systemPackages = [  | environment.systemPackages = [  | ||
   pkgs.package_name  |    pkgs.{{{package_name}}}  | ||
];  | ];  | ||
}}  | |||
After modifying your configuration, apply the changes by running:  | After modifying your configuration, apply the changes by running:  | ||
{{#tag:pre|  | |||
sudo nixos-rebuild switch  | sudo nixos-rebuild switch  | ||
}}  | |||
=== User-Specific Installation with Home Manager ===  | === User-Specific Installation with Home Manager ===  | ||
{{#tag:pre|  | |||
home.packages = [    | home.packages = [    | ||
   pkgs.package_name    |    pkgs.{{{package_name}}}   | ||
];  | ];  | ||
}}  | |||
After updating your configuration, apply the changes by running:  | After updating your configuration, apply the changes by running:  | ||
{{#tag:pre|  | |||
home-manager switch  | home-manager switch  | ||
}}  | |||
== Configuration ==  | == Configuration ==  | ||
{{{configuration|}}}  | |||
=== Basic ===  | === Basic ===  | ||
<pre>  | <pre class="mw-editcontent">  | ||
programs.package_name = {  | programs.{{package_name}} = {  | ||
     enable = true;  |      enable = true;  | ||
};  | };  | ||
</pre>  | </pre>  | ||
=== Advanced ===  | === Advanced ===  | ||
<pre>  | <pre class="mw-editcontent">  | ||
programs.package_name = {  | programs.{{package_name}} = {  | ||
   enable = true;  |    enable = true;  | ||
   ...  |    ...  | ||
};  | };  | ||
</pre>  | </pre>  | ||
== Tips and Tricks ==  | == Tips and Tricks ==  | ||
{{{tips_and_tricks|}}}  | |||
=== Where to see a list of options? ===  | === Where to see a list of options? ===  | ||
== Troubleshooting ==  | == Troubleshooting ==  | ||
{{{troubleshooting|}}}  | |||
== References ==  | == References ==  | ||
{{{references|}}}  | |||
</includeonly>  | |||