mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-14 20:33:59 +01:00
flake.nix: Add alejandra to outputs.formatter
Now it's possible to format with alejandra with `nix fmt`.
This commit is contained in:
parent
fe099cad69
commit
1077200205
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user