users/nixos/programs/terminal-multiplexer: init

This commit is contained in:
Gabriel Arazas 2024-03-03 11:03:31 +08:00
parent c2d000d09b
commit 344a1667a4
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
3 changed files with 31 additions and 0 deletions

View File

@ -3,6 +3,10 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
imports = [ ./modules ];
users.nixos.programs.terminal-multiplexer.enable = true;
suites = { suites = {
dev = { dev = {
enable = true; enable = true;

View File

@ -0,0 +1,5 @@
{
imports = [
./programs/terminal-multiplexer.nix
];
}

View File

@ -0,0 +1,22 @@
# Very useful for non-graphical installers.
{ config, lib, pkgs, ... }:
let
userCfg = config.users.nixos;
cfg = userCfg.programs.terminal-multiplexer;
in
{
options.users.nixos.programs.terminal-multiplexer.enable =
lib.mkEnableOption "terminal multiplexer";
config = lib.mkIf cfg.enable {
programs.zellij = {
enable = true;
settings = {
mouse_mode = false;
copy_on_select = false;
pane_frames = false;
};
};
};
}