Add tmux
This commit is contained in:
parent
555d4f3356
commit
77b5bbdf32
@ -7,10 +7,12 @@
|
||||
users.${user} = {
|
||||
imports = [
|
||||
./programs/firefox
|
||||
./programs/tmux
|
||||
./zsh
|
||||
./packages
|
||||
];
|
||||
firefox.enable = true;
|
||||
tmux.enable = true;
|
||||
home = {
|
||||
username = "${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