Add official formatter to flake

Allows running `nix fmt`, which will format using the official style as
agreed upon in nixpkgs
This commit is contained in:
Pablo Ovelleiro Corral 2024-04-28 17:31:06 +02:00
parent d58209ef93
commit cfebd3b304
Signed by: pinpox
GPG key ID: 29E9A6ED72CCB334

View file

@ -87,6 +87,8 @@
checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks self.deploy) inputs.deploy-rs.lib; 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 { deploy.nodes = self.lib.deploy.mkDeployNodes self.nixosConfigurations {
nachtigall = { nachtigall = {
hostname = "10.7.6.1"; hostname = "10.7.6.1";