diff --git a/home/default.nix b/home/default.nix index 3b1af78..59c72b1 100644 --- a/home/default.nix +++ b/home/default.nix @@ -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}"; diff --git a/home/programs/tmux/default.nix b/home/programs/tmux/default.nix new file mode 100644 index 0000000..4e04bca --- /dev/null +++ b/home/programs/tmux/default.nix @@ -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"; + }; + }; +} +