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 curl
gh gh
git git
nixfmt
python3 python3
ruby ruby
wget wget

View file

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