stylix/modules/tmux/hm.nix
Bernardo Meurer b42555850b
Move all templates into flake inputs (#165)
This reduces our reliance on import-from-derivation, so evaluation is faster.
2023-10-10 10:44:54 +01:00

17 lines
385 B
Nix

{ pkgs, config, lib, ... }:
let
theme = config.lib.stylix.colors {
templateRepo = config.lib.stylix.templates.base16-tmux;
};
in {
options.stylix.targets.tmux.enable =
config.lib.stylix.mkEnableTarget "Tmux" config.programs.tmux.enable;
config = lib.mkIf config.stylix.targets.tmux.enable {
programs.tmux.extraConfig = ''
source-file ${theme}
'';
};
}