pinwheel: Add nix-mode and hook it up with eglot
This commit is contained in:
@@ -26,6 +26,7 @@
|
|||||||
./modules/firefox
|
./modules/firefox
|
||||||
./modules/calibre
|
./modules/calibre
|
||||||
./modules/go
|
./modules/go
|
||||||
|
./modules/nix
|
||||||
];
|
];
|
||||||
|
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
|||||||
@@ -398,6 +398,9 @@ https://github.com/justbur/emacs-which-key
|
|||||||
)
|
)
|
||||||
|
|
||||||
(use-package eglot
|
(use-package eglot
|
||||||
|
:config
|
||||||
|
;; Ensure `nil` is in your PATH.
|
||||||
|
(add-to-list 'eglot-server-programs '(nix-mode . ("nil")))
|
||||||
:hook (
|
:hook (
|
||||||
(eglot-managed-mode . alex/eglot-on-save)
|
(eglot-managed-mode . alex/eglot-on-save)
|
||||||
(go-mode . eglot-ensure)
|
(go-mode . eglot-ensure)
|
||||||
@@ -413,3 +416,12 @@ https://github.com/justbur/emacs-which-key
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
** Nix
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package nix-mode
|
||||||
|
:mode "\\.nix$"
|
||||||
|
:hook (
|
||||||
|
(nix-mode . eglot-ensure)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
#+END_SRC
|
||||||
|
|||||||
6
hosts/pinwheel/modules/nix/default.nix
Normal file
6
hosts/pinwheel/modules/nix/default.nix
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
home-manager.users.alex = {
|
||||||
|
home.packages = [ pkgs.nil ];
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user