2024-05-21 14:53:46 -07:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
2024-10-20 13:12:44 -07:00
|
|
|
}: let
|
|
|
|
cfg = config.programs.tmux.rose-pine;
|
2023-07-13 09:17:51 -07:00
|
|
|
enable = cfg.enable && config.programs.tmux.enable;
|
2024-10-20 13:12:44 -07:00
|
|
|
in {
|
|
|
|
options.programs.tmux.rose-pine =
|
|
|
|
lib.rp.mkRosePineOpt {name = "tmux";}
|
|
|
|
// {
|
|
|
|
extraConfig = lib.mkOption {
|
|
|
|
type = lib.types.lines;
|
|
|
|
description = "Additional configuration for the rose-pine plugin.";
|
|
|
|
default = "";
|
|
|
|
example = ''
|
|
|
|
set -g @rose-pine "application session user host date_time"
|
|
|
|
'';
|
|
|
|
};
|
2024-05-13 10:59:12 -07:00
|
|
|
};
|
2023-04-15 17:22:31 -07:00
|
|
|
|
2023-07-13 09:17:51 -07:00
|
|
|
config.programs.tmux.plugins = lib.mkIf enable [
|
2023-04-15 17:22:31 -07:00
|
|
|
{
|
2024-10-20 13:12:44 -07:00
|
|
|
plugin = pkgs.tmuxPlugins.rose-pine;
|
|
|
|
extraConfig = lib.concatStrings [
|
2024-05-13 10:59:12 -07:00
|
|
|
''
|
2024-10-20 13:12:44 -07:00
|
|
|
set -g @rose_pine_variant '${cfg.flavor}'
|
2024-05-13 10:59:12 -07:00
|
|
|
''
|
|
|
|
cfg.extraConfig
|
|
|
|
];
|
2023-04-15 17:22:31 -07:00
|
|
|
}
|
|
|
|
];
|
|
|
|
}
|