forked from KptltD00M/nixy
5082521524
- Introduced `default-creds` module for managing default credentials with Umami integration. - Added `fail2ban` module for brute-force attack protection with configurable ban times. - Created `firewall` module to enable and configure basic firewall settings. - Implemented `gitea` module for self-hosted Git service with PostgreSQL backend. - Developed `glance` module for a customizable dashboard with various widgets and themes. - Added `iknowyou` module for a self-hosted password manager with production and demo environments. - Introduced `kernel-hardening` module for enhancing kernel security settings. - Created `mazanoke` module for a simple web application with Nginx integration. - Added `mealie` module for a self-hosted meal planning application. - Implemented `stirling-pdf` module for PDF generation service. - Developed `umami` module for self-hosted analytics with secret management. - Added `ssh` module for secure SSH configuration with user restrictions. - Introduced `nixy` theme for a customized aesthetic experience across services.
61 lines
1.4 KiB
Nix
61 lines
1.4 KiB
Nix
# starship is a minimal, fast, and extremely customizable prompt for any shell!
|
||
{
|
||
config,
|
||
lib,
|
||
...
|
||
}: let
|
||
accent = "#${config.lib.stylix.colors.base0D}";
|
||
background-alt = "#${config.lib.stylix.colors.base01}";
|
||
in {
|
||
programs.starship = {
|
||
enable = true;
|
||
settings = {
|
||
add_newline = true;
|
||
format = lib.concatStrings [
|
||
"$nix_shell"
|
||
"$hostname"
|
||
"$directory"
|
||
"$git_branch"
|
||
"$git_state"
|
||
"$git_status"
|
||
"$character"
|
||
];
|
||
directory = {
|
||
style = accent;
|
||
};
|
||
|
||
character = {
|
||
success_symbol = "[❯](${accent})";
|
||
error_symbol = "[❯](red)";
|
||
vimcmd_symbol = "[❮](cyan)";
|
||
};
|
||
|
||
nix_shell = {
|
||
format = "[$symbol]($style) ";
|
||
symbol = "🐚";
|
||
style = "";
|
||
};
|
||
|
||
git_branch = {
|
||
symbol = "[](${background-alt}) ";
|
||
style = "fg:${accent} bg:${background-alt}";
|
||
format = "on [$symbol$branch]($style)[](${background-alt}) ";
|
||
};
|
||
|
||
git_status = {
|
||
format = "[[(*$conflicted$untracked$modified$staged$renamed$deleted)](218)($ahead_behind$stashed)]($style)";
|
||
style = "cyan";
|
||
conflicted = "";
|
||
renamed = "";
|
||
deleted = "";
|
||
stashed = "≡";
|
||
};
|
||
|
||
git_state = {
|
||
format = "([$state( $progress_current/$progress_total)]($style)) ";
|
||
style = "bright-black";
|
||
};
|
||
};
|
||
};
|
||
}
|