all repos — nixfiles @ 82cd148ed09ff40fa765ca2d12e5d1b2d3b8a194

System and user configuration, managed by nix and home-manager

Use alejandra instead of nixfmt
Alan Pearce alan@alanpearce.eu
Sun, 16 Oct 2022 23:29:56 +0200
commit

82cd148ed09ff40fa765ca2d12e5d1b2d3b8a194

parent

300a10e626e2bf3dc40863d79fd71c29f603ef32

2 files changed, 2 insertions(+), 5 deletions(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -795,10 +795,7 @@ ;;;; nix
 (with-eval-after-load 'nix-mode
   (setq nix-mode-use-smie t
-        nix-indent-function #'smie-indent-line)
-  (general-add-hook 'nix-mode-hook
-                    (lambda ()
-                      (add-hook 'before-save-hook #'nix-mode-format 0 'local))))
+        nix-indent-function #'smie-indent-line))
 
 (use-package nix-update
   :commands (nix-update-fetch))
M user/settings/development/base.nixuser/settings/development/base.nix
@@ -11,7 +11,7 @@     mosh
 
     nix-prefetch-scripts
-    nixfmt
+    alejandra # nix formatter
 
     httpie
     jq