From c4f1643ee62e89fcfaa9657f7e1af49f2fa42deb Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sun, 7 Apr 2024 22:14:35 -0400 Subject: [PATCH] vscodium: switch to alejandra for nix formatting --- homeManagerModules/cliApps/default.nix | 1 - homeManagerModules/guiApps/vsCodium/default.nix | 15 +++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/homeManagerModules/cliApps/default.nix b/homeManagerModules/cliApps/default.nix index 8cb87a33..87da45f0 100644 --- a/homeManagerModules/cliApps/default.nix +++ b/homeManagerModules/cliApps/default.nix @@ -9,7 +9,6 @@ curl gh git - nixfmt python3 ruby wget diff --git a/homeManagerModules/guiApps/vsCodium/default.nix b/homeManagerModules/guiApps/vsCodium/default.nix index b190d19a..b6b95634 100644 --- a/homeManagerModules/guiApps/vsCodium/default.nix +++ b/homeManagerModules/guiApps/vsCodium/default.nix @@ -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 + (nerdfonts.override {fonts = ["Noto"];}) + 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";