From 107720020532983cf07199f828d81da3d57b62a1 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Mon, 5 Jun 2023 20:23:06 -0400 Subject: [PATCH] flake.nix: Add alejandra to outputs.formatter Now it's possible to format with alejandra with `nix fmt`. --- flake.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/flake.nix b/flake.nix index 65beac7..a51e449 100644 --- a/flake.nix +++ b/flake.nix @@ -2,6 +2,7 @@ outputs = { self, nixpkgs, home-manager, hyprland, stylix, nix-gaming, ... }@attrs: let VARIABLES = import ./variables.nix; in { + formatter."${VARIABLES.system}" = nixpkgs.legacyPackages."${VARIABLES.system}".alejandra; nixosConfigurations."${VARIABLES.hostname}" = nixpkgs.lib.nixosSystem { system = VARIABLES.system; specialArgs = attrs;