11.stylix/modules/tmux/hm.nix
Flameopathic 3fce9fb038
treewide: propagate inputs and remove templates (#926)
Closes: https://github.com/danth/stylix/issues/238
Link: https://github.com/danth/stylix/pull/926

Reviewed-by: Daniel Thwaites <danth@danth.me>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-03-09 15:46:36 +01:00

19 lines
400 B
Nix

{ config, lib, ... }:
let
theme = config.lib.stylix.colors {
templateRepo = config.stylix.inputs.tinted-tmux;
target = "base16";
};
in
{
options.stylix.targets.tmux.enable =
config.lib.stylix.mkEnableTarget "Tmux" true;
config = lib.mkIf (config.stylix.enable && config.stylix.targets.tmux.enable) {
programs.tmux.extraConfig = ''
source-file ${theme}
'';
};
}