diff options
author | Franck Cuny <franck@fcuny.net> | 2023-12-03 14:46:40 -0800 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2023-12-03 14:46:40 -0800 |
commit | 8f07159caee839015f9612614ab84e571be9a713 (patch) | |
tree | 8a98448078894c1484b175dd19637a0e1c72c0ac | |
parent | run `nix flake check` in CI before building the site (diff) | |
download | fcuny.net-8f07159caee839015f9612614ab84e571be9a713.tar.gz |
switch to nixpkgs-fmt to format nix files
-rw-r--r-- | flake.nix | 3 | ||||
-rw-r--r-- | treefmt.nix | 2 |
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 }; |