spacemacs/layers/+os/nixos
2021-08-26 02:00:32 +03:00
..
img Update NixOS layer banner 2019-10-19 11:55:56 +02:00
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 [bot] "documentation_updates" Wed Aug 25 22:37:51 UTC 2021 2021-08-26 02:00:32 +03:00

NixOS layer

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