2022-12-04 13:45:43 +00:00
|
|
|
{pkgs, ...}: {
|
2024-03-10 17:26:18 +00:00
|
|
|
home.packages = with pkgs; [alejandra deadnix statix];
|
2021-12-26 14:07:09 +00:00
|
|
|
|
2022-11-11 16:32:26 +00:00
|
|
|
programs.vscode-mod.extensions = with pkgs; [
|
2021-12-26 14:07:09 +00:00
|
|
|
vscode-extensions.bbenoist.nix
|
2022-12-04 13:45:43 +00:00
|
|
|
vscode-extensions.kamadorueda.alejandra
|
2021-12-26 14:07:09 +00:00
|
|
|
];
|
|
|
|
|
2022-11-11 16:32:26 +00:00
|
|
|
programs.vscode-mod.userSettings."[nix]" = {
|
2022-12-04 13:45:43 +00:00
|
|
|
"editor.defaultFormatter" = "kamadorueda.alejandra";
|
|
|
|
"editor.formatOnSave" = true;
|
|
|
|
};
|
|
|
|
programs.vscode-mod.userSettings = {
|
|
|
|
"alejandra.program" = "alejandra";
|
2021-12-26 14:07:09 +00:00
|
|
|
};
|
2024-05-11 16:29:43 +01:00
|
|
|
|
|
|
|
programs.zsh.shellAliases.nixdirfmt = "alejandra . && statix fix . && deadnix -e .";
|
2021-12-26 14:07:09 +00:00
|
|
|
}
|