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,
lib,
device,
config,
...
}: {
programs.git = {
enable = true;
lfs.enable = true;
userName = "uttarayan21";
userEmail = "email@uttarayan.me";
settings = {
user.name = "uttarayan21";
user.email = config.accounts.email.accounts.fastmail.address;
};
extraConfig = {
color.ui = true;
core.editor = "nvim";

View File

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