From cfebd3b304051c9d44484a7aaa08236c55e0398e Mon Sep 17 00:00:00 2001 From: Pablo Ovelleiro Corral Date: Sun, 28 Apr 2024 17:31:06 +0200 Subject: [PATCH] Add official formatter to flake Allows running `nix fmt`, which will format using the official style as agreed upon in nixpkgs --- flake.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flake.nix b/flake.nix index 32e9c603..72ea475a 100644 --- a/flake.nix +++ b/flake.nix @@ -87,6 +87,8 @@ checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks self.deploy) inputs.deploy-rs.lib; + formatter.x86_64-linux = inputs.nixpkgs.legacyPackages.x86_64-linux.nixfmt-rfc-style; + deploy.nodes = self.lib.deploy.mkDeployNodes self.nixosConfigurations { nachtigall = { hostname = "10.7.6.1";