flake.nix: Add alejandra to outputs.formatter

Now it's possible to format with alejandra with `nix fmt`.
This commit is contained in:
Donovan Glover 2023-06-05 20:23:06 -04:00
parent fe099cad69
commit 1077200205
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -2,6 +2,7 @@
outputs = { self, nixpkgs, home-manager, hyprland, stylix, nix-gaming, ... }@attrs: let outputs = { self, nixpkgs, home-manager, hyprland, stylix, nix-gaming, ... }@attrs: let
VARIABLES = import ./variables.nix; VARIABLES = import ./variables.nix;
in { in {
formatter."${VARIABLES.system}" = nixpkgs.legacyPackages."${VARIABLES.system}".alejandra;
nixosConfigurations."${VARIABLES.hostname}" = nixpkgs.lib.nixosSystem { nixosConfigurations."${VARIABLES.hostname}" = nixpkgs.lib.nixosSystem {
system = VARIABLES.system; system = VARIABLES.system;
specialArgs = attrs; specialArgs = attrs;