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/nixos/packages.el

31 lines
952 B
EmacsLisp
Raw Normal View History

2015-07-20 20:11:08 +00:00
(setq nixos-packages '(nix-mode
company
nixos-options
helm-nixos-options
company-nixos-options))
(defun nixos/init-nix-mode ()
(use-package nix-mode))
(defun nixos/init-nixos-options ()
(use-package nixos-options))
(when (configuration-layer/layer-usedp 'spacemacs-helm)
(defun nixos/init-helm-nixos-options ()
(use-package helm-nixos-options
:config
(spacemacs/set-leader-keys
"h>" 'helm-nixos-options))))
2015-07-20 20:11:08 +00:00
(when (configuration-layer/layer-usedp 'auto-completion)
(defun nixos/post-init-company ()
(spacemacs|add-company-hook nix-mode)
(push 'company-capf company-backends-nix-mode))
(defun nixos/init-company-nixos-options ()
(use-package company-nixos-options
:if (configuration-layer/package-usedp 'company)
:defer t
:init
(push 'company-nixos-options company-backends-nix-mode))))