22 lines
432 B
Nix
22 lines
432 B
Nix
{ config, lib, pkgs, namespace, ... }:
|
|
let
|
|
inherit (lib) mkIf mkEnableOption;
|
|
|
|
cfg = config.${namespace}.shell.toolset.zellij;
|
|
in
|
|
{
|
|
options.${namespace}.shell.toolset.zellij = {
|
|
enable = mkEnableOption "terminal multiplexer";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
home.packages = with pkgs; [ zellij ];
|
|
|
|
programs.zellij = {
|
|
enable = true;
|
|
attachExistingSession = true;
|
|
|
|
settings = {};
|
|
};
|
|
};
|
|
}
|