refactor(git): update configuration to use centralized email setting
refactor(starship): enhance config with palette and external TOML file
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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));
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user