flake.nix: formatter init
Signed-off-by: s0me1newithhand7s <117505144+s0me1newithhand7s@users.noreply.github.com>
This commit is contained in:
parent
5c5a372cfb
commit
23ea92dc57
1 changed files with 19 additions and 0 deletions
19
flake.nix
19
flake.nix
|
|
@ -223,6 +223,25 @@
|
|||
home-manager,
|
||||
...
|
||||
} @ inputs: {
|
||||
formatter = {
|
||||
x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.writeShellApplication {
|
||||
name = "treefmt-nix-lite";
|
||||
runtimeInputs = with nixpkgs.legacyPackages.x86_64-linux; [
|
||||
alejandra
|
||||
statix
|
||||
deadnix
|
||||
treefmt
|
||||
];
|
||||
|
||||
text = ''
|
||||
treefmt \
|
||||
--ci \
|
||||
--config-file \
|
||||
"${self}/.github/workflows/alejandra.toml"
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
homeConfigurations = {
|
||||
hand7s = home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue