all repos — nixfiles @ 0f1b6a0fb092d044db6bbaebf25198b3f96c61f9

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

nix: use nixpkgs-fmt instead of alejandra
Alan Pearce alan@alanpearce.eu
Tue, 14 Mar 2023 21:37:56 +0100
commit

0f1b6a0fb092d044db6bbaebf25198b3f96c61f9

parent

1804e5807da1a6aa39dd71e6938edc6fd5828a77

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

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -1082,7 +1082,9 @@ (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)))
 
M user/settings/nix.nixuser/settings/nix.nix
@@ -7,7 +7,7 @@ nixpkgs.config = import ../config.nix;   home.packages = with pkgs; [
     nil
     nix-prefetch-scripts
-    alejandra # nix formatter
+    nixpkgs-fmt
   ];
   nixpkgs.overlays = [
     (import ../overlays/extra-packages.nix)