mirror of
https://github.com/nix-community/home-manager
synced 2024-11-04 18:29:45 +01:00
doc: add note about line width
This commit is contained in:
parent
c8b73e415a
commit
d64fff1fe0
1 changed files with 3 additions and 1 deletions
|
@ -157,7 +157,9 @@ Finally, when adding a new module, say `programs/foo.nix`, we use the fixed comm
|
||||||
|
|
||||||
The code in Home Manager is formatted by the {nixfmt}[nixfmt] tool and the formatting is checked in the pull request tests. Run the `format` tool inside the project repository before submitting your pull request.
|
The code in Home Manager is formatted by the {nixfmt}[nixfmt] tool and the formatting is checked in the pull request tests. Run the `format` tool inside the project repository before submitting your pull request.
|
||||||
|
|
||||||
Note, we prefer `lowerCamelCase` for variable and attribute names with the accepted exception of variables directly referencing packages in Nixpkgs which use a hyphenated style. For example, the Home Manager option `services.gpg-agent.enableSshSupport` references the `gpg-agent` package in Nixpkgs.
|
Keep lines at a reasonable width, ideally 80 characters or less. This also applies to string literals.
|
||||||
|
|
||||||
|
We prefer `lowerCamelCase` for variable and attribute names with the accepted exception of variables directly referencing packages in Nixpkgs which use a hyphenated style. For example, the Home Manager option `services.gpg-agent.enableSshSupport` references the `gpg-agent` package in Nixpkgs.
|
||||||
|
|
||||||
[[sec-news]]
|
[[sec-news]]
|
||||||
=== News
|
=== News
|
||||||
|
|
Loading…
Reference in a new issue