From ba9dedd5152e448002a37f4f2fd23e3d64ff0578 Mon Sep 17 00:00:00 2001 From: Chris Kruining Date: Sat, 14 Jun 2025 21:48:16 +0200 Subject: [PATCH] initial start of zellij --- modules/home/shell/toolset/zellij.nix | 23 +++++++++++++++++++++++ modules/home/shell/zsh.nix | 1 + 2 files changed, 24 insertions(+) create mode 100644 modules/home/shell/toolset/zellij.nix diff --git a/modules/home/shell/toolset/zellij.nix b/modules/home/shell/toolset/zellij.nix new file mode 100644 index 0000000..01f6c8a --- /dev/null +++ b/modules/home/shell/toolset/zellij.nix @@ -0,0 +1,23 @@ +{ config, lib, pkgs, user, ... }: +let + inherit (lib.modules) mkIf; + inherit (lib.options) mkEnableOption; +in +{ + options.modules.${user}.shell.toolset.zellij = { + enable = mkEnableOption "terminal multiplexer"; + }; + + config = mkIf config.modules.${user}.shell.toolset.zellij.enable { + home-manager.users.${user} = { + home.packages = with pkgs; [ zellij ]; + + programs.zellij = { + enable = true; + attachExistingSession = true; + + settings = {}; + }; + }; + }; +} diff --git a/modules/home/shell/zsh.nix b/modules/home/shell/zsh.nix index 7b8accf..d6e3f4d 100644 --- a/modules/home/shell/zsh.nix +++ b/modules/home/shell/zsh.nix @@ -35,6 +35,7 @@ in programs = { starship.enableZshIntegration = true; yazi.enableZshIntegration = true; + zellij.enableZshIntegration = true; zsh = { enable = true;