summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--user/emacs/init.el4
-rw-r--r--user/settings/nix.nix2
2 files changed, 4 insertions, 2 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index 1c0d7ebe..c7ac3c67 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -1082,7 +1082,9 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
 (use-package apheleia
   :config (progn
             (setf (alist-get 'shfmt apheleia-formatters)
-                  '("shfmt")))
+                  '("shfmt"))
+            (setf (alist-get 'nixfmt apheleia-formatters)
+                  '("nixpkgs-fmt")))
   :init (progn
           (apheleia-global-mode +1)))
 
diff --git a/user/settings/nix.nix b/user/settings/nix.nix
index 39f34623..4d313624 100644
--- a/user/settings/nix.nix
+++ b/user/settings/nix.nix
@@ -7,7 +7,7 @@
   home.packages = with pkgs; [
     nil
     nix-prefetch-scripts
-    alejandra # nix formatter
+    nixpkgs-fmt
   ];
   nixpkgs.overlays = [
     (import ../overlays/extra-packages.nix)