rose-pine-nix/modules/home-manager/tmux.nix
punkfairie 9947d603d0
Some checks are pending
CI / Format Nix files (push) Waiting to run
CI / Test Modules (push) Waiting to run
CI / Validate sources (push) Waiting to run
Release / Publish to Flake registries (push) Blocked by required conditions
Release / Make release (push) Waiting to run
Build & deploy website / Build site (push) Waiting to run
Build & deploy website / Deploy website (push) Blocked by required conditions
feat(tmux): Catppuccin -> Rose Pine
2024-10-20 13:12:44 -07:00

34 lines
771 B
Nix

{
config,
lib,
pkgs,
...
}: let
cfg = config.programs.tmux.rose-pine;
enable = cfg.enable && config.programs.tmux.enable;
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"
'';
};
};
config.programs.tmux.plugins = lib.mkIf enable [
{
plugin = pkgs.tmuxPlugins.rose-pine;
extraConfig = lib.concatStrings [
''
set -g @rose_pine_variant '${cfg.flavor}'
''
cfg.extraConfig
];
}
];
}