enable tmux

This commit is contained in:
Pim Kunis 2023-11-03 12:15:59 +01:00
parent 3258451357
commit a01a4e4fc0
4 changed files with 20 additions and 4 deletions

View file

@ -1,3 +0,0 @@
# nixos-home
The NixOS Home Manager configuration for my user on my laptop.

View file

@ -1,3 +1,4 @@
pkgs: config:
{ {
# Gruvbox theme (https://github.com/alacritty/alacritty-theme/blob/master/themes/gruvbox_dark.yaml) # Gruvbox theme (https://github.com/alacritty/alacritty-theme/blob/master/themes/gruvbox_dark.yaml)
colors = { colors = {
@ -50,4 +51,13 @@
style = "Bold Italic"; style = "Bold Italic";
}; };
}; };
shell = {
program = "${pkgs.bash}/bin/bash";
args = [
"--login"
"-c"
"${config.programs.tmux.package}/bin/tmux"
];
};
} }

View file

@ -1,8 +1,9 @@
{ pkgs, config, ... }:
{ {
config = { config = {
programs.alacritty = { programs.alacritty = {
enable = true; enable = true;
settings = import ./config.nix; settings = import ./config.nix pkgs config;
}; };
}; };
} }

View file

@ -39,6 +39,14 @@
programs = { programs = {
home-manager.enable = true; home-manager.enable = true;
chromium.enable = true; chromium.enable = true;
tmux = {
enable = true;
sensibleOnTop = true;
newSession = true;
terminal = "tmux";
keyMode = "vi";
};
}; };
# Let home-manager manage the X session # Let home-manager manage the X session