From 3e60e2769527d94ea8405f2d0f3da3ee84258717 Mon Sep 17 00:00:00 2001 From: Zynh Ludwig Date: Thu, 30 May 2024 14:01:29 -0700 Subject: [PATCH] tmux module --- home/modules/default.nix | 2 ++ home/modules/tmux.nix | 16 ++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 home/modules/tmux.nix diff --git a/home/modules/default.nix b/home/modules/default.nix index a2cbf6b..2e88d42 100644 --- a/home/modules/default.nix +++ b/home/modules/default.nix @@ -6,8 +6,10 @@ ./alacritty.nix ./fish.nix ./git.nix + ./tmux.nix ]; + snowhawk.tmux.enable = lib.mkDefault true; snowhawk.fish.enable = lib.mkDefault true; snowhawk.git.enable = lib.mkDefault true; } diff --git a/home/modules/tmux.nix b/home/modules/tmux.nix new file mode 100644 index 0000000..c14529f --- /dev/null +++ b/home/modules/tmux.nix @@ -0,0 +1,16 @@ +{ lib, config, ... }: + +let + cfg = config.snowhawk.tmux; +in +{ + options.snowhawk.tmux = { + enable = lib.mkEnableOption "tmux"; + }; + + config = lib.mkIf cfg.enable { + programs.tmux = { + enable = true; + }; + }; +}