mirror of
https://github.com/nix-community/home-manager
synced 2024-11-24 03:59:46 +01:00
e00dd0d7d2
Tmux 3.2 includes support to use `$XDG_CONFIG_HOME/tmux/tmux.conf` as well as `~/.config/tmux/tmux.conf` for configuration file.
27 lines
484 B
Nix
27 lines
484 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
substituteExpected = path:
|
|
pkgs.substituteAll {
|
|
src = path;
|
|
|
|
sensible_rtp = pkgs.tmuxPlugins.sensible.rtp;
|
|
};
|
|
|
|
in {
|
|
config = {
|
|
programs.tmux = {
|
|
enable = true;
|
|
shell = "/usr/bin/myshell";
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.config/tmux/tmux.conf
|
|
assertFileContent home-files/.config/tmux/tmux.conf \
|
|
${substituteExpected ./default-shell.conf}
|
|
'';
|
|
};
|
|
}
|