Files
nix/home/modules/tmux/default.nix

27 lines
365 B
Nix

{
config,
lib,
pkgs,
dotsPath,
...
}:
let
cfg = config.tmux;
in
{
options.tmux.enable = lib.mkEnableOption "tmux";
config = lib.mkIf cfg.enable {
home.packages = with pkgs; [
tmuxp
reptyr
];
programs.tmux = {
enable = true;
extraConfig = builtins.readFile (dotsPath + "/.config/tmux/tmux.conf");
};
};
}