Anthony Rodriguez
861c658590
As a first step towards getting rid of home-manager and going towards a cleaner, more concise configuration, I decided to move back the styling to their respective home-manager modules. Since I'm not planning to share my styling module anymore, as it is very specific to my config, I just decided to merge everything together. commit078334af48
Author: Anthony Rodriguez <anthony@nezia.dev> Date: Sun Jan 19 20:41:14 2025 +0100 treewide: finish moving rest of styling to their respective hm modules commit57432a9655
Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Jan 17 12:13:54 2025 +0100 treewide: move regreet styling out of module commit6fef9e0a76
Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Jan 17 12:10:33 2025 +0100 treewide: move swaync styling out of module commit2f4a8433c7
Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Jan 17 12:06:33 2025 +0100 treewide: move nvf styling out of module commita315915298
Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Jan 17 12:02:58 2025 +0100 treewide: move hyprlock styling out of module commit0fe6f67b20
Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Jan 17 12:02:49 2025 +0100 modules/nix/core/home-manager: import lib' in extraSpecialArgs commite09569b921
Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Jan 17 11:55:05 2025 +0100 treewide: move hyprland styling out of module commiteb25ce0c43
Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Jan 17 11:43:35 2025 +0100 modules/nix/style/modules: remove styling for unused programs commitefb6b91ce1
Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Jan 17 11:00:54 2025 +0100 treewide: move foot styling out of module commit4c06a66b5e
Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Jan 17 10:56:05 2025 +0100 treewide: move fish styling out of module commitb3a03e5e9b
Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Jan 17 10:47:43 2025 +0100 treewide: move discord styling out of module
88 lines
3 KiB
Nix
88 lines
3 KiB
Nix
{
|
|
lib,
|
|
pkgs,
|
|
config,
|
|
osConfig,
|
|
...
|
|
}: let
|
|
starshipTransient = lib.strings.optionalString config.programs.starship.enableTransience ''
|
|
function starship_transient_prompt_func
|
|
starship module character
|
|
end
|
|
|
|
function starship_transient_rprompt_func
|
|
starship module cmd_duration
|
|
end
|
|
'';
|
|
styleCfg = osConfig.local.style;
|
|
in {
|
|
config = lib.mkIf osConfig.local.profiles.desktop.enable {
|
|
programs.fish = {
|
|
enable = true;
|
|
interactiveShellInit =
|
|
starshipTransient
|
|
+ ''
|
|
set fish_greeting # Disable greeting
|
|
fish_vi_key_bindings # Enable Vi mode
|
|
|
|
''
|
|
+ lib.optionalString styleCfg.enable
|
|
''
|
|
set fish_cursor_default block blink
|
|
set fish_cursor_insert line blink
|
|
set fish_cursor_replace_one underscore blink
|
|
set fish_cursor_visual block
|
|
|
|
set -x fish_color_autosuggestion brblack
|
|
set -x fish_color_cancel -r
|
|
set -x fish_color_command brgreen
|
|
set -x fish_color_comment brmagenta
|
|
set -x fish_color_cwd green
|
|
set -x fish_color_cwd_root red
|
|
set -x fish_color_end brmagenta
|
|
set -x fish_color_error brred
|
|
set -x fish_color_escape brcyan
|
|
set -x fish_color_history_current --bold
|
|
set -x fish_color_host normal
|
|
set -x fish_color_host_remote yellow
|
|
set -x fish_color_match --background=brblue
|
|
set -x fish_color_normal normal
|
|
set -x fish_color_operator cyan
|
|
set -x fish_color_param brblue
|
|
set -x fish_color_quote yellow
|
|
set -x fish_color_redirection bryellow
|
|
set -x fish_color_search_match 'bryellow' '--background=brblack'
|
|
set -x fish_color_selection 'white' '--bold' '--background=brblack'
|
|
set -x fish_color_status red
|
|
set -x fish_color_user brgreen
|
|
set -x fish_color_valid_path --underline
|
|
set -x fish_pager_color_completion normal
|
|
set -x fish_pager_color_description yellow
|
|
set -x fish_pager_color_prefix 'white' '--bold' '--underline'
|
|
set -x fish_pager_color_progress 'brwhite' '--background=cyan'
|
|
'';
|
|
|
|
plugins = [
|
|
{
|
|
name = "fzf";
|
|
inherit (pkgs.fishPlugins.fzf) src;
|
|
}
|
|
{
|
|
name = "autopair";
|
|
inherit (pkgs.fishPlugins.autopair) src;
|
|
}
|
|
];
|
|
};
|
|
|
|
programs.bash = {
|
|
enable = true;
|
|
initExtra = ''
|
|
if [[ $(${pkgs.procps}/bin/ps --no-header --pid=$PPID --format=comm) != "fish" && -z ''${BASH_EXECUTION_STRING} ]]
|
|
then
|
|
shopt -q login_shell && LOGIN_OPTION='--login' || LOGIN_OPTION=""
|
|
exec ${pkgs.fish}/bin/fish $LOGIN_OPTION
|
|
fi
|
|
'';
|
|
};
|
|
};
|
|
}
|