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 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 [nixos] Add nixos-format-on-save (#14982) 2021-08-20 03:09:00 +00:00

NixOS layer

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