home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

programming-nix.el (560B)


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