[URGENT]: treefmt / treefmt-nix dithced

Signed-off-by: s0me1newithhand7s <117505144+s0me1newithhand7s@users.noreply.github.com>
This commit is contained in:
s0me1newithhand7s 2025-10-15 12:11:46 +03:00
parent bb2f60ef95
commit 1726d090c8
No known key found for this signature in database
3 changed files with 26 additions and 44 deletions

View file

@ -225,23 +225,30 @@
} @ inputs: {
formatter = {
x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.writeShellApplication {
name = "treefmt-nix-lite";
name = "hand7sfmt";
runtimeInputs = with nixpkgs.legacyPackages.x86_64-linux; [
alejandra
statix
deadnix
treefmt
];
text = ''
treefmt \
--ci \
--config-file \
"${self}/.github/workflows/"
${nixpkgs.lib.getExe nixpkgs.legacyPackages.x86_64-linux.alejandra} \
--experimental-config \
${self}/.github/workflows/alejandra.toml \
--check \
${self} && ${nixpkgs.lib.getExe nixpkgs.legacyPackages.x86_64-linux.statix} \
check \
--config \
${self}/.github/workflows/statix.toml \
${self} && ${nixpkgs.lib.getExe nixpkgs.legacyPackages.x86_64-linux.deadnix} \
--fail \
${self}
'';
};
};
homeConfigurations = {
hand7s = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;