dotfiles/parts/default.nix
2025-11-28 00:45:26 -06:00

66 lines
1.4 KiB
Nix
Executable file

{
perSystem =
{
pkgs,
lib,
config,
self',
...
}:
{
devShells = {
default = pkgs.mkShell {
packages = builtins.attrValues {
inherit (pkgs)
age
gitmoji-cli
graphviz
imv
just
nixfmt
just-lsp
rust-analyzer
rustfmt
litemdview
nil
openssl
pqiv
sops
ssh-to-age
taplo
vscode-langservers-extracted
watchexec
;
};
shellHook = "${config.pre-commit.installationScript}";
};
};
pre-commit.settings.hooks = {
nixfmt-rfc-style.enable = true;
commitizen.enable = true;
};
treefmt = {
programs = {
nixfmt-rfc-style.enable = true;
cabal-fmt.enable = true;
commitizen.enable = true;
deadnix.enable = true;
elm-format.enable = true;
hlint.enable = true;
mdformat.enable = true;
nixfmt = {
enable = true;
width = 200;
};
ormolu.enable = true;
rustfmt.enable = true;
statix.enable = true;
taplo.enable = true;
typstyle.enable = true;
yamlfmt.enable = true;
};
};
};
}