mirror of
https://github.com/danth/stylix
synced 2024-11-26 22:20:22 +00:00
b42555850b
This reduces our reliance on import-from-derivation, so evaluation is faster.
17 lines
385 B
Nix
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}
|
|
'';
|
|
};
|
|
}
|