Add tmux
This commit is contained in:
parent
555d4f3356
commit
77b5bbdf32
@ -7,10 +7,12 @@
|
|||||||
users.${user} = {
|
users.${user} = {
|
||||||
imports = [
|
imports = [
|
||||||
./programs/firefox
|
./programs/firefox
|
||||||
|
./programs/tmux
|
||||||
./zsh
|
./zsh
|
||||||
./packages
|
./packages
|
||||||
];
|
];
|
||||||
firefox.enable = true;
|
firefox.enable = true;
|
||||||
|
tmux.enable = true;
|
||||||
home = {
|
home = {
|
||||||
username = "${user}";
|
username = "${user}";
|
||||||
homeDirectory = "/home/${user}";
|
homeDirectory = "/home/${user}";
|
||||||
|
14
home/programs/tmux/default.nix
Normal file
14
home/programs/tmux/default.nix
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
{ pkgs, lib, config, ...}:
|
||||||
|
with lib;
|
||||||
|
let cfg = config.tmux.enable;
|
||||||
|
in {
|
||||||
|
options.tmux.enable = mkEnableOption "tmux";
|
||||||
|
config = mkIf cfg {
|
||||||
|
programs.tmux = {
|
||||||
|
enable = true;
|
||||||
|
prefix = "C-a";
|
||||||
|
terminal = "screen-256color";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user