1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-28 09:28:32 +02:00
home-manager/tests/modules/programs/tmux/default-shell.nix
2020-11-14 10:59:10 +01:00

28 lines
460 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/.tmux.conf
assertFileContent home-files/.tmux.conf \
${substituteExpected ./default-shell.conf}
'';
};
}