mirror of
https://codeberg.org/muon/home.git
synced 2026-03-08 03:25:16 +00:00
31 lines
708 B
Nix
31 lines
708 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
inputs,
|
|
...
|
|
}: let
|
|
zellij-muon = pkgs.zellij.overrideAttrs (previousAttrs: {
|
|
patches = previousAttrs.patches ++ [./zellij/floating_fix.patch];
|
|
});
|
|
in {
|
|
options.mods.terminal.development.enable =
|
|
lib.mkEnableOption "enables cli editor";
|
|
|
|
config = lib.mkIf config.mods.terminal.development.enable {
|
|
mods = {
|
|
nvim.enable = true;
|
|
helix.enable = true;
|
|
zellij.enable = true;
|
|
};
|
|
|
|
programs.direnv = {
|
|
enable = true;
|
|
nix-direnv.enable = true;
|
|
enableZshIntegration = lib.mkIf config.mods.terminal.zsh.enable true;
|
|
};
|
|
|
|
home.sessionVariables.EDITOR = "nvim";
|
|
programs.zsh.sessionVariables.EDITOR = "nvim";
|
|
};
|
|
}
|