mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 21:23:38 +00:00
2093cf425f
See #575 for discussion.
41 lines
857 B
Nix
41 lines
857 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
substituteExpected = path: pkgs.substituteAll {
|
|
src = path;
|
|
|
|
tmuxplugin_fzf_tmux_url = pkgs.tmuxPlugins.fzf-tmux-url;
|
|
tmuxplugin_logging = pkgs.tmuxPlugins.logging;
|
|
tmuxplugin_prefix_highlight = pkgs.tmuxPlugins.prefix-highlight;
|
|
tmuxplugin_sensible_rtp = pkgs.tmuxPlugins.sensible.rtp;
|
|
};
|
|
|
|
in
|
|
|
|
{
|
|
config = {
|
|
programs.tmux = {
|
|
aggressiveResize = true;
|
|
clock24 = true;
|
|
enable = true;
|
|
keyMode = "emacs";
|
|
newSession = true;
|
|
reverseSplit = true;
|
|
|
|
plugins = with pkgs.tmuxPlugins; [
|
|
logging
|
|
prefix-highlight
|
|
fzf-tmux-url
|
|
];
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.tmux.conf
|
|
assertFileContent home-files/.tmux.conf \
|
|
${substituteExpected ./emacs-with-plugins.conf}
|
|
'';
|
|
};
|
|
}
|