flake.nix: formatter init

Signed-off-by: s0me1newithhand7s <117505144+s0me1newithhand7s@users.noreply.github.com>
This commit is contained in:
s0me1newithhand7s 2025-10-15 00:47:34 +03:00
parent 5c5a372cfb
commit 23ea92dc57
No known key found for this signature in database

View file

@ -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;