mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-04-24 12:19:12 +00:00
users/foo-dogsquared: modularize terminal multiplexer config
This commit is contained in:
parent
a70b8ad5d6
commit
ed5f37ec48
@ -18,6 +18,7 @@
|
|||||||
keys.gpg.enable = true;
|
keys.gpg.enable = true;
|
||||||
keys.ssh.enable = true;
|
keys.ssh.enable = true;
|
||||||
shell.enable = true;
|
shell.enable = true;
|
||||||
|
terminal-multiplexer.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.desktop.enable = true;
|
services.desktop.enable = true;
|
||||||
@ -50,11 +51,6 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Making my favorite terminal multiplexer right now.
|
|
||||||
programs.zellij.settings = {
|
|
||||||
default_layout = "editor";
|
|
||||||
layout_dir = builtins.toString ./config/zellij/layouts;
|
|
||||||
};
|
|
||||||
# My custom modules.
|
# My custom modules.
|
||||||
profiles = {
|
profiles = {
|
||||||
editors = {
|
editors = {
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
./programs/git.nix
|
./programs/git.nix
|
||||||
./programs/keys.nix
|
./programs/keys.nix
|
||||||
./programs/shell.nix
|
./programs/shell.nix
|
||||||
|
./programs/terminal-multiplexer.nix
|
||||||
|
|
||||||
./services/desktop.nix
|
./services/desktop.nix
|
||||||
];
|
];
|
||||||
|
@ -0,0 +1,23 @@
|
|||||||
|
{ 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user