vscodium: switch to alejandra for nix formatting

This commit is contained in:
Aly Raffauf 2024-04-07 22:14:35 -04:00
parent 1757bb6961
commit c4f1643ee6
2 changed files with 9 additions and 7 deletions

View file

@ -9,7 +9,6 @@
curl
gh
git
nixfmt
python3
ruby
wget

View file

@ -1,17 +1,20 @@
{ pkgs, lib, config, ... }: {
{
pkgs,
lib,
config,
...
}: {
options = {
guiApps.vsCodium.enable = lib.mkEnableOption "Enables VSCodium.";
};
config = lib.mkIf config.guiApps.vsCodium.enable {
guiApps.alacritty.enable = lib.mkDefault true;
# Necessary fonts.
home.packages = with pkgs; [
(nerdfonts.override {fonts = ["Noto"];})
nixfmt
alejandra
];
programs.vscode = {
@ -26,7 +29,7 @@
"files.autoSave" = "afterDelay";
"git.autofetch" = true;
"git.confirmSync" = false;
"nix.formatterPath" = "${pkgs.nixfmt}/bin/nixfmt";
"nix.formatterPath" = "${pkgs.alejandra}/bin/alejandra";
"terminal.external.linuxExec" = "${pkgs.alacritty}/bin/alacritty";
"update.mode" = "none";
"window.menuBarVisibility" = "hidden";