11.stylix/modules/tmux/hm.nix
Bernardo Meurer 7689e621f8
stylix: update all flake inputs (#644)
This fixes build failures in the tmux module as well.

Approved-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2024-11-26 09:03:03 +01:00

18 lines
405 B
Nix

{ config, lib, ... }:
let
theme = config.lib.stylix.colors {
templateRepo = config.lib.stylix.templates.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}
'';
};
}