2022-03-28 15:03:21 +02:00
|
|
|
#+title: :lang nix
|
|
|
|
#+subtitle: I hereby declare "nix geht mehr!"
|
|
|
|
#+created: December 02, 2017
|
|
|
|
#+since: 2.0.8 (#280)
|
2021-10-16 01:28:32 +02:00
|
|
|
|
|
|
|
* Description :unfold:
|
|
|
|
This module adds support for the Nix language to Doom Emacs, along with tools
|
|
|
|
for managing [[https://nixos.org/][Nix(OS)]].
|
|
|
|
|
|
|
|
Includes:
|
|
|
|
- Syntax highlighting
|
2022-09-26 02:19:42 +08:00
|
|
|
- Completion through [[doom-package:company]] and/or [[doom-package:helm]]
|
2021-10-16 01:28:32 +02:00
|
|
|
- Nix option lookup
|
|
|
|
- Formatting (~nixfmt~)
|
2020-05-04 13:47:59 +03:00
|
|
|
|
|
|
|
** Maintainers
|
2021-10-16 01:28:32 +02:00
|
|
|
- [[doom-user:][@hlissner]]
|
|
|
|
|
|
|
|
[[doom-contrib-maintainer:][Become a maintainer?]]
|
|
|
|
|
|
|
|
** Module flags
|
2022-04-09 18:38:04 +03:00
|
|
|
- +tree-sitter ::
|
|
|
|
Leverages tree-sitter for better syntax highlighting and structural text
|
2022-09-26 02:19:42 +08:00
|
|
|
editing. Requires [[doom-module::tools tree-sitter]].
|
2021-10-16 01:28:32 +02:00
|
|
|
|
|
|
|
** Packages
|
2022-09-26 02:19:42 +08:00
|
|
|
- [[doom-package:company-nixos-options]] if [[doom-module::completion company]]
|
|
|
|
- [[doom-package:helm-nixos-options]] if [[doom-module::completion helm]]
|
|
|
|
- [[doom-package:nix-mode]]
|
|
|
|
- [[doom-package:nix-update]]
|
2021-10-16 01:28:32 +02:00
|
|
|
|
|
|
|
** Hacks
|
|
|
|
/No hacks documented for this module./
|
2020-05-04 13:47:59 +03:00
|
|
|
|
2021-10-16 01:28:32 +02:00
|
|
|
** TODO Changelog
|
|
|
|
# This section will be machine generated. Don't edit it by hand.
|
|
|
|
/This module does not have a changelog yet./
|
2020-05-04 13:47:59 +03:00
|
|
|
|
2021-10-16 01:28:32 +02:00
|
|
|
* TODO Installation
|
|
|
|
[[id:01cffea4-3329-45e2-a892-95a384ab2338][Enable this module in your ~doom!~ block.]]
|
2020-05-04 13:47:59 +03:00
|
|
|
|
2021-10-16 01:28:32 +02:00
|
|
|
This module requires:
|
|
|
|
- [[https://nixos.org/guides/install-nix.html][The Nix package manager]], for a variety of its features (besides syntax
|
|
|
|
highlighting).
|
2022-09-26 02:19:42 +08:00
|
|
|
- =nixfmt=, for automatic formatting (requires [[doom-module::editor format]]).
|
2021-10-16 01:28:32 +02:00
|
|
|
|
|
|
|
- *MacOS:* TODO
|
|
|
|
- *Arch Linux:* TODO
|
|
|
|
- *NixOS:* in ~pkgs.nixfmt~
|
|
|
|
|
|
|
|
* TODO Usage
|
|
|
|
#+begin_quote
|
2023-09-16 20:19:11 +02:00
|
|
|
/This module's usage documentation is incomplete./ [[doom-contrib-module:][Complete it?]]
|
2021-10-16 01:28:32 +02:00
|
|
|
#+end_quote
|
2020-05-04 13:47:59 +03:00
|
|
|
|
2020-05-06 22:14:38 +03:00
|
|
|
** Keybindings
|
2021-10-16 01:28:32 +02:00
|
|
|
| Binding | Description |
|
|
|
|
|-----------------+----------------------|
|
|
|
|
| [[kbd:][<localleader> b]] | ~nix-build~ |
|
|
|
|
| [[kbd:][<localleader> f]] | ~nix-update-fetch~ |
|
|
|
|
| [[kbd:][<localleader> o]] | ~+nix/lookup-option~ |
|
|
|
|
| [[kbd:][<localleader> p]] | ~nix-format-buffer~ |
|
|
|
|
| [[kbd:][<localleader> r]] | ~nix-repl-show~ |
|
|
|
|
| [[kbd:][<localleader> s]] | ~nix-repl-shell~ |
|
|
|
|
| [[kbd:][<localleader> u]] | ~nix-unpack~ |
|
|
|
|
|
|
|
|
* TODO Configuration
|
|
|
|
#+begin_quote
|
2023-09-16 20:19:11 +02:00
|
|
|
This module has no configuration documentation yet. [[doom-contrib-module:][Write some?]]
|
2021-10-16 01:28:32 +02:00
|
|
|
#+end_quote
|
2020-05-06 22:14:38 +03:00
|
|
|
|
2020-05-04 13:47:59 +03:00
|
|
|
* Troubleshooting
|
2021-10-16 01:28:32 +02:00
|
|
|
/There are no known problems with this module./ [[doom-report:][Report one?]]
|
|
|
|
|
|
|
|
* Frequently asked questions
|
|
|
|
/This module has no FAQs yet./ [[doom-suggest-faq:][Ask one?]]
|
|
|
|
|
|
|
|
* TODO Appendix
|
|
|
|
#+begin_quote
|
2023-09-16 20:19:11 +02:00
|
|
|
This module has no appendix yet. [[doom-contrib-module:][Write one?]]
|
2021-10-16 01:28:32 +02:00
|
|
|
#+end_quote
|