1
0
forked from extern/nix-config

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
VARIABLES = import ./variables.nix;
in {
formatter."${VARIABLES.system}" = nixpkgs.legacyPackages."${VARIABLES.system}".alejandra;
nixosConfigurations."${VARIABLES.hostname}" = nixpkgs.lib.nixosSystem {
system = VARIABLES.system;
specialArgs = attrs;