From 77b5bbdf3260b674278b816242b403e607694c28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Tue, 27 Feb 2024 11:59:28 +0100 Subject: [PATCH] Add tmux --- home/default.nix | 2 ++ home/programs/tmux/default.nix | 14 ++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 home/programs/tmux/default.nix 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"; + }; + }; +} +