spacemacs/layers/+os/nixos/README.org

1.7 KiB

NixOS layer

/TakeV/spacemacs/media/commit/ed12b1118f1e6b3813dfc2a98536f2316524d0d4/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