Skip to content

Commit

Permalink
nix: add formatter based on system
Browse files Browse the repository at this point in the history
  • Loading branch information
benmezger committed Jan 1, 2025
1 parent b37df10 commit 2b3a02d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@
modules = [ ./conf.nix ];
};
userConf = evaledConfig.config;
system = builtins.currentSystem;
in
{
overlays = import ./overlays { inherit inputs; };

formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt-rfc-style;
formatter."${system}" = nixpkgs.legacyPackages."${system}".nixfmt-rfc-style;

nixosConfigurations = {
default = nixpkgs.lib.nixosSystem {
Expand Down

0 comments on commit 2b3a02d

Please sign in to comment.