home: tmux: basic setup

This commit is contained in:
Antoine Martin 2021-04-19 18:59:24 +02:00
parent 4168da868d
commit 0cb51a65f6
4 changed files with 16 additions and 4 deletions

View file

@ -14,10 +14,6 @@
AddKeysToAgent yes
'';
};
tmux = {
enable = true;
baseIndex = 1;
};
};
environment.systemPackages = with pkgs; [

View file

@ -3,6 +3,7 @@
imports = [
./emacs.nix
./flameshot.nix
./tmux.nix
./x
];

14
home/tmux.nix Normal file
View file

@ -0,0 +1,14 @@
{ config, lib, pkgs, ... }:
let
cfg = config.my.home.tmux;
in
{
options.my.home.tmux = with lib; {
enable = mkEnableOption "tmux dotfiles";
};
config.programs.tmux = lib.mkIf cfg.enable {
enable = true;
baseIndex = 1;
};
}

View file

@ -4,5 +4,6 @@
# Keyboard settings & i3 settings
my.home.x.enable = true;
my.home.emacs.enable = true;
my.home.tmux.enable = true;
};
}