This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/+os/nixos
Aaron Zeng fdeb770103
[nixos] Add nixos-format-on-save (#14982)
* [nixos] Add nixos-format-on-save
2021-08-20 03:09:00 +00:00
..
img
config.el [nixos] Add nixos-format-on-save (#14982) 2021-08-20 03:09:00 +00:00
packages.el [nixos] Add nixos-format-on-save (#14982) 2021-08-20 03:09:00 +00:00
README.org [nixos] Add nixos-format-on-save (#14982) 2021-08-20 03:09:00 +00:00

NixOS layer

/TakeV/spacemacs/media/commit/5a9b813c9e55f8ba9ff15943970b026a90efc64f/layers/+os/nixos/img/nixos.png

Description

This layer adds tools for better integration of Emacs in NixOS.

Features:

Install

Layer

To use this configuration layer, add it to your ~/.spacemacs. You will need to add nixos to the existing dotspacemacs-configuration-layers list in this file.

Format on save

To enable automatic formatting on save, set the layer variable nixos-format-on-save to t:

  (nixos :variables nixos-format-on-save t)

Configuration

On some systems, company-nixos-options may be very slow. If this is the case, see the section on disabling the disabling auto-complete for the nixos layer.

Key bindings

NixOS Options

Key binding Description
SPC h > Call helm-nixos-options
SPC m = = Format buffer using nixfmt