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,
|
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";
|
||||||
|
|||||||
@@ -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));
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user