1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2025-02-03 06:45:04 +01:00
home-manager/tests/modules/programs/sesh/basic-configuration.nix
Michael van Straten cb2fd626fe sesh: add module
Sesh is a CLI that helps you create and manage tmux sessions quickly and easily
using zoxide. See https://github.com/joshmedeski/sesh for more.
2024-09-01 13:59:59 +02:00

31 lines
751 B
Nix

{ pkgs, ... }:
{
config = {
programs.sesh = {
enable = true;
package = pkgs.writeScriptBin "dummy-polybar" "";
settings = {
default_session.startup_command = "nvim -c ':Telescope find_files'";
session = [
{
name = "Downloads 📥";
path = "~/Downloads";
startup_command = "ls";
}
{
name = "tmux config";
path = "~/c/dotfiles/.config/tmux";
startup_command = "nvim tmux.conf";
}
];
};
};
nmt.script = ''
assertFileExists home-files/.config/sesh/sesh.toml
assertFileContent home-files/.config/sesh/sesh.toml \
${./basic-configuration.toml}
'';
};
}