From 71e1684f762845c5efa69033bd0e28c2c39cacea Mon Sep 17 00:00:00 2001 From: Julian Schacher Date: Wed, 6 Mar 2024 22:50:26 +0100 Subject: [PATCH] Add a formatter, which can be used by running "nix fmt" Use nixpkgs-fmt because what it does closely aligns to this repos already established conventions and it doesn't do weird stuff. Also see: https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-fmt.html https://github.com/nix-community/nixpkgs-fmt --- flake.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flake.nix b/flake.nix index 63ecb99..8768c79 100644 --- a/flake.nix +++ b/flake.nix @@ -220,5 +220,7 @@ format = "proxmox"; }; }; + + formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixpkgs-fmt; }; }