mirror of
https://github.com/danth/stylix
synced 2024-11-26 06:00:23 +00:00
Tmux support (#95)
This commit is contained in:
parent
76a8050ab2
commit
095ab80afc
1 changed files with 22 additions and 0 deletions
22
modules/tmux/hm.nix
Normal file
22
modules/tmux/hm.nix
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
{ pkgs, config, lib, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
theme = config.lib.stylix.colors {
|
||||||
|
templateRepo = pkgs.fetchFromGitHub {
|
||||||
|
owner = "tinted-theming";
|
||||||
|
repo = "base16-tmux";
|
||||||
|
rev = "30fc84afc723e027d4497a284fcae3cb75097441";
|
||||||
|
sha256 = "JJ/eRqTayuEKrL9MBe943HpKy7yLyd2Dmes58KN1jdk=";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
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}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue