nixos-config/configs/home-manager/foo-dogsquared/modules/programs/terminal-multiplexer.nix
Gabriel Arazas 0760acb676
configs: consolidate NixOS and home-manager config into one configs folder
Now we're going beyond these structuring as we might have to accomodate
non-system configurations like Nixvim.
2024-01-15 07:45:43 +08:00

24 lines
579 B
Nix

{ config, lib, pkgs, ... }:
let
userCfg = config.users.foo-dogsquared;
cfg = userCfg.programs.terminal-multiplexer;
in
{
options.users.foo-dogsquared.programs.terminal-multiplexer.enable =
lib.mkEnableOption "foo-dogsquared's terminal multiplexer setup";
config = lib.mkIf cfg.enable {
programs.zellij = {
enable = true;
settings = {
mouse_mode = false;
copy_on_select = false;
pane_frames = false;
default_layout = "editor";
layout_dir = builtins.toString ../../config/zellij/layouts;
};
};
};
}