dotfiles/parts/default.nix

67 lines
1.4 KiB
Nix
Raw Normal View History

2025-10-01 19:51:55 -05:00
{
2025-11-04 03:30:52 -06:00
perSystem =
{
pkgs,
lib,
config,
self',
...
}:
{
devShells = {
default = pkgs.mkShell {
packages = builtins.attrValues {
inherit (pkgs)
age
gitmoji-cli
graphviz
imv
just
nixfmt
just-lsp
2025-11-25 00:14:51 -06:00
rust-analyzer
rustfmt
2025-11-04 03:30:52 -06:00
litemdview
nil
openssl
pqiv
sops
ssh-to-age
taplo
vscode-langservers-extracted
watchexec
;
};
shellHook = "${config.pre-commit.installationScript}";
};
};
2025-10-01 19:51:55 -05:00
2025-11-04 03:30:52 -06:00
pre-commit.settings.hooks = {
nixfmt-rfc-style.enable = true;
commitizen.enable = true;
};
2025-11-28 00:45:26 -06:00
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;
};
2025-11-04 03:30:52 -06:00
};
};
2025-10-01 19:51:55 -05:00
}