Refactor terminal configurations to streamline shell execution
- Updated Hyprland&Niri keybinds to remove explicit shell invocation for kitty
This commit is contained in:
@@ -1,9 +1,16 @@
|
||||
{ ... }: {
|
||||
flake.homeManagerModules.wisdomTerminalsKitty =
|
||||
{ config, lib, ... }:
|
||||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
root = config.chiasson.home;
|
||||
cfg = config.chiasson.home.terminals.kitty;
|
||||
kittyShellExe =
|
||||
if config.programs.fish.enable or false then
|
||||
lib.getExe config.programs.fish.package
|
||||
else if config.programs.bash.enable or false then
|
||||
lib.getExe config.programs.bash.package
|
||||
else
|
||||
"${pkgs.bash}/bin/bash";
|
||||
in
|
||||
{
|
||||
options.chiasson.home.terminals.kitty.enable = lib.mkEnableOption ''
|
||||
@@ -14,6 +21,7 @@
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
shell ${kittyShellExe}
|
||||
include dank-tabs.conf
|
||||
include dank-theme.conf
|
||||
allow_remote_control yes
|
||||
|
||||
Reference in New Issue
Block a user