From 17f7df9fc89e181266bffa618d7dd1bc62cf9f96 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Mon, 19 Apr 2021 18:59:24 +0200 Subject: [PATCH] home: tmux: basic setup --- base/programs.nix | 4 ---- home/default.nix | 1 + home/tmux.nix | 14 ++++++++++++++ hosts/boreal/home.nix | 1 + 4 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 home/tmux.nix diff --git a/base/programs.nix b/base/programs.nix index 0770768..2de78f9 100644 --- a/base/programs.nix +++ b/base/programs.nix @@ -14,10 +14,6 @@ AddKeysToAgent yes ''; }; - tmux = { - enable = true; - baseIndex = 1; - }; }; environment.systemPackages = with pkgs; [ diff --git a/home/default.nix b/home/default.nix index abf442e..0da2e12 100644 --- a/home/default.nix +++ b/home/default.nix @@ -3,6 +3,7 @@ imports = [ ./emacs.nix ./flameshot.nix + ./tmux.nix ./x ]; diff --git a/home/tmux.nix b/home/tmux.nix new file mode 100644 index 0000000..8325fa9 --- /dev/null +++ b/home/tmux.nix @@ -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; + }; +} diff --git a/hosts/boreal/home.nix b/hosts/boreal/home.nix index 46f1750..c39bf22 100644 --- a/hosts/boreal/home.nix +++ b/hosts/boreal/home.nix @@ -4,5 +4,6 @@ # Keyboard settings & i3 settings my.home.x.enable = true; my.home.emacs.enable = true; + my.home.tmux.enable = true; }; }