Guanran Wang
46626f24ba
see: https://github.com/nix-community/home-manager/issues/1341#issuecomment-1870352014
26 lines
588 B
Nix
26 lines
588 B
Nix
{
|
|
projectRootFile = "flake.nix";
|
|
|
|
### nix
|
|
programs.deadnix.enable = true;
|
|
programs.statix.enable = true;
|
|
programs.alejandra.enable = true;
|
|
|
|
### shell
|
|
programs.shfmt.enable = true;
|
|
settings.formatter.shfmt.options = ["-i" "2" "-sr"];
|
|
programs.shellcheck.enable = true;
|
|
settings.formatter.shellcheck.options = [
|
|
"-s"
|
|
"bash"
|
|
"-e"
|
|
"SC2016" # shfmt kept doing it, didn't find a toggle to turn it off
|
|
];
|
|
|
|
### toml
|
|
programs.taplo.enable = true;
|
|
|
|
### misc
|
|
programs.prettier.enable = true;
|
|
settings.formatter.prettier.excludes = ["secrets.yaml"];
|
|
}
|