From 5e04d266cc1a84ab076f1389b90b373da14ab426 Mon Sep 17 00:00:00 2001 From: Pablo Ovelleiro Corral Date: Sun, 28 Apr 2024 17:33:53 +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";