nix/module/common/Tmux.nix

14 lines
385 B
Nix
Raw Normal View History

2024-04-02 18:50:20 +03:00
{ pkgs, color, ... }: let
2024-04-02 08:15:31 +03:00
script = pkgs.writeShellScriptBin "tmux_script" (builtins.readFile ./tmux/Script.sh);
2024-04-02 06:50:22 +03:00
in {
programs.tmux = {
enable = true;
2024-04-02 18:50:20 +03:00
extraConfig = ''
set -g @COLOR_BG #${color.bg}
set -g @COLOR_DARKGRAY #${color.darkgray}
set -g @COLOR_YELLOW #${color.yellow}
'' + (builtins.readFile ./tmux/tmux.conf);
};
2024-04-02 08:15:31 +03:00
environment.systemPackages = [ script ];
}