about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2023-12-03 14:46:40 -0800
committerFranck Cuny <franck@fcuny.net>2023-12-03 14:46:40 -0800
commit8f07159caee839015f9612614ab84e571be9a713 (patch)
tree8a98448078894c1484b175dd19637a0e1c72c0ac
parentrun `nix flake check` in CI before building the site (diff)
downloadfcuny.net-8f07159caee839015f9612614ab84e571be9a713.tar.gz
switch to nixpkgs-fmt to format nix files
-rw-r--r--flake.nix3
-rw-r--r--treefmt.nix2
2 files changed, 3 insertions, 2 deletions
diff --git a/flake.nix b/flake.nix
index 5ee6f10..abeef0b 100644
--- a/flake.nix
+++ b/flake.nix
@@ -13,7 +13,8 @@
       let
         pkgs = nixpkgs.legacyPackages.${system};
         treefmtEval = treefmt-nix.lib.evalModule pkgs ./treefmt.nix;
-      in {
+      in
+      {
         formatter = treefmtEval.config.build.wrapper;
 
         packages = {
diff --git a/treefmt.nix b/treefmt.nix
index e6164a0..89a0c40 100644
--- a/treefmt.nix
+++ b/treefmt.nix
@@ -1,7 +1,7 @@
 {
   projectRootFile = "flake.nix";
   programs = {
-    nixfmt.enable = true; # nix
+    nixpkgs-fmt.enable = true; # nix
     taplo.enable = true; # toml
     yamlfmt.enable = true; # yaml
   };