nix-configs/modules/zellij.nix

49 lines
1.5 KiB
Nix
Raw Normal View History

2023-05-14 12:07:54 +02:00
{ config, lib, ... }:
let cfg = config.jade.zellij;
in with lib; {
options.jade.zellij= {
enable = mkEnableOption "Enable the Zellij multiplexer";
};
config = mkIf cfg.enable {
home-manager.users.jade = { pkgs, ... }: {
2023-10-28 22:25:06 +02:00
home.file = {
zellij-forgot = {
target = ".config/zellij/plugins/zellij-forgot.wasm";
source = builtins.fetchurl "https://github.com/karimould/zellij-forgot/releases/download/0.2.0/zellij_forgot.wasm";
};
monocle = {
target = ".config/zellij/plugins/monocle.wasm";
source = builtins.fetchurl "https://github.com/imsnif/monocle/releases/download/0.37.2/monocle.wasm";
};
};
2023-05-14 12:07:54 +02:00
programs.zellij = {
enable = true;
settings = {
theme = "gruvbox-dark";
themes.gruvbox-dark = {
2023-10-28 22:25:06 +02:00
fg = "#d5c4a1";
2023-05-14 12:07:54 +02:00
bg = "#282828";
black = "#3C3836";
red = "#CC241D";
green = "#98971A";
yellow = "#D79921";
blue = "#3C8588";
magenta = "#B16286";
cyan = "#689D6A";
2023-11-13 14:07:25 +01:00
white = "#ebdbb2";
2023-05-14 12:07:54 +02:00
orange = "#D65D0E";
};
2023-10-28 22:25:06 +02:00
# keybinds = {
# session = {
# "bind \"o\"" = {
# LaunchOrFocusPlugin = ["file:/home/jade/.config/zellij/plugins/monocle.wasm" { floating = true; }];
# };
# };
# };
2023-05-14 12:07:54 +02:00
pane_frames = false;
};
};
};
};
}