Tmux support (#95)

This commit is contained in:
Mason Dear 2023-05-02 10:51:06 -04:00 committed by GitHub
parent 76a8050ab2
commit 095ab80afc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

22
modules/tmux/hm.nix Normal file
View 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}
'';
};
}