NixOS Wiki talk: Contributing
TODOs
- Update page with the resolution of
nix-community/wiki
issue #43: Where to raise questions when it comes to content organization? --Toraritte (talk) 14:40, 2 August 2022 (UTC)
NixOS Wiki vs. NixOS User Wiki
dear wiki people!
it is nice to have consistent terms.
which one is the better one? NixOS Wiki or NixOS User Wiki?
--Vater (talk) 22:16, 18 October 2017 (UTC)
"NixOS Wiki", matches the domain, no confusion with the GitHub Wiki. --Fadenb (talk) 09:38, 19 October 2017 (UTC)
describing templates, especially for shortcuts
hi wiki people,
probably it is good idea to name and describe all the most useful templates. am i right?
btw: maybe Special:Interwiki links are easier to use (for the most users).
--Vater (talk) 15:34, 19 October 2017 (UTC)
I'd also love to see an overview of all our fancy templates. I also always forget if it is note: or notice: :)
Btw, Vater it would be great if you could join IRC: freenode#nixos-wiki , a lot of discussion happens here. --Makefu (talk) 21:01, 19 October 2017 (UTC)
drafty "small" draft for the NixOS Wiki:Contributing#Syntax section
Syntax
- Headings
Use the secondary MediaWiki header (== My Section ==
) for main sections (the primary header should never be used).
- Command (on the command-line)
- Please use
<syntaxhighlight lang="console">
. - Please use one line for every command-line.
wiki input | wiki output |
---|---|
<syntaxhighlight lang="console">
|
nixos-rebuild switch
|
- Nix configuration code (in a file)
- Please use
<syntaxhighlight lang="nix">
wiki input | wiki output |
---|---|
<syntaxhighlight lang="nix">
|
{ config, pkgs, ... }:
{
imports =
[
./hardware-configuration.nix
];
}
|
wiki input | wiki output |
---|---|
<syntaxhighlight lang="nix"></syntaxhighlight>
|
environment.systemPackages = with pkgs; [
home-manager
];
|
wiki input | wiki output |
---|---|
<syntaxhighlight lang="nix">
|
{ config, pkgs, ... }:
|
- (non Nix Language) code
- Please use
<syntaxhighlight lang="language">
, where language is a supported (lexers) for the mediawikiwiki:Extension:SyntaxHighlight.
wiki input | wiki output |
---|---|
<syntaxhighlight lang="cpp"> </syntaxhighlight> |
- Formatting file locations and commands as part of a text
wiki input | wiki output |
---|---|
You have to create a directory <code>~/.config/nixpkgs/</code> because the program <code>home-manager</code> expecting a file <code>~/.config/nixpkgs/home.nix</code> there. |
You have to create a directory |
- Notation
- Use the right capitalization for the Nix ecosystem names:
- NixOS
- Nix
- Nix Language
- Nixpkgs
- NixOps
- Hydra
updating this (media)wiki
dear wiki crew
does anyone can update the (media)wiki? it is version 1.29. https://nixos.wiki/wiki/Special:Version the current (stable) version is 1.39. https://www.mediawiki.org/wiki/Release_notes