36 lines
724 B
Nix
36 lines
724 B
Nix
{
|
|
inputs,
|
|
lib,
|
|
formatter,
|
|
system,
|
|
}:
|
|
let
|
|
pkgs = inputs.nixpkgs.legacyPackages.${system};
|
|
in
|
|
{
|
|
fix = {
|
|
type = "app";
|
|
program = lib.getExe (
|
|
pkgs.writeShellApplication {
|
|
name = "fix";
|
|
runtimeInputs = [
|
|
formatter
|
|
pkgs.deadnix
|
|
];
|
|
text = ''
|
|
treefmt
|
|
deadnix --edit \
|
|
--exclude \
|
|
configs/nixos/hosts/neogaia/hardware-configuration.nix \
|
|
configs/nixos/hosts/pikachu/hardware-configuration.nix \
|
|
configs/nixos/hosts/zeus/hardware-configuration.nix \
|
|
src/natu/testdata \
|
|
third_party \
|
|
-- .
|
|
treefmt
|
|
'';
|
|
}
|
|
);
|
|
};
|
|
}
|