refactor(git): update configuration to use centralized email setting

refactor(starship): enhance config with palette and external TOML file
This commit is contained in:
uttarayan21
2025-10-24 09:57:05 +05:30
parent b2982efef0
commit 41d2200b2e
2 changed files with 25 additions and 16 deletions

View File

@@ -1,14 +1,15 @@
{ {
pkgs, pkgs,
lib, config,
device,
... ...
}: { }: {
programs.git = { programs.git = {
enable = true; enable = true;
lfs.enable = true; lfs.enable = true;
userName = "uttarayan21"; settings = {
userEmail = "email@uttarayan.me"; user.name = "uttarayan21";
user.email = config.accounts.email.accounts.fastmail.address;
};
extraConfig = { extraConfig = {
color.ui = true; color.ui = true;
core.editor = "nvim"; core.editor = "nvim";

View File

@@ -4,21 +4,29 @@
device, device,
... ...
}: { }: {
stylix.targets.starship.enable = false;
programs.starship = { programs.starship = {
enable = true; enable = true;
enableFishIntegration = true; enableFishIntegration = true;
enableNushellIntegration = true; enableNushellIntegration = true;
settings = { settings = let
format = "$all$character"; flavour = "mocha"; # Replace with your preferred palette
character = { in
success_symbol = "[[OK](bold green) ](maroon)"; {
error_symbol = "[](red)"; # Check https://starship.rs/config/#prompt
vimcmd_symbol = "[](green)"; format = "$all$character";
}; palette = "catppuccin_${flavour}";
directory = { character = {
truncation_length = 4; success_symbol = "[[OK](bold green) ](maroon)";
style = "bold lavender"; error_symbol = "[](red)";
}; vimcmd_symbol = "[](green)";
}; };
directory = {
truncation_length = 4;
style = "bold lavender";
};
}
// builtins.fromTOML (builtins.readFile
(pkgs.catppuccinThemes.starship + /palettes/${flavour}.toml));
}; };
} }