fedora-csb-system-manager
1;;; programming-nix.el --- -*- lexical-binding: t; -*-
2;;; Commentary:
3;;; Nix configuration
4;;; Code:
5(use-package nix-ts-mode
6 :if (executable-find "nix")
7 :mode ("\\.nix\\'" "\\.nix.in\\'"))
8
9(use-package nix-drv-mode
10 :if (executable-find "nix")
11 :after nix-mode
12 :mode "\\.drv\\'")
13
14(use-package nix-shell
15 :if (executable-find "nix")
16 :after nix-mode
17 :commands (nix-shell-unpack nix-shell-configure nix-shell-build))
18
19(use-package nixpkgs-fmt
20 :if (executable-find "nix")
21 :after nix-ts-mode
22 ;; :custom
23 ;; (nixpkgs-fmt-command "nixfmt")
24 :config
25 (add-hook 'nix-ts-mode-hook 'nixpkgs-fmt-on-save-mode))
26
27(provide 'programming-nix)
28;;; programming-nix.el ends here