refactor(tmux): move tmux into its own module

This commit is contained in:
Mohammad Rafiq 2025-02-28 04:26:02 +08:00
parent fe811e0940
commit e6623278a2
2 changed files with 15 additions and 8 deletions

10
modules/tmux.nix Normal file
View file

@ -0,0 +1,10 @@
{ ... }:
{
programs.tmux = {
enable = true;
extraConfig = ''
set -g default-terminal "tmux-256color"
set -ag terminal-overrides ",xterm-256color:RGB"
'';
};
}

View file

@ -1,6 +1,10 @@
{ self, config, pkgs, inputs, ... }:
{ self, pkgs, ... }:
{
imports = [
../../modules/tmux.nix
];
home = {
username = "rafiq";
homeDirectory = "/home/rafiq";
@ -33,13 +37,6 @@
enableAutoUpdates = true;
};
tmux = {
enable = true;
extraConfig = ''
set -g default-terminal "tmux-256color"
set -ag terminal-overrides ",xterm-256color:RGB"
'';
};
home-manager.enable = true;
};