feat(desktop): move terminal config to homes and use home-manager modules

This commit is contained in:
Mohammad Rafiq 2025-06-14 15:39:14 +08:00
parent ee2dfd8398
commit a04688d17b
No known key found for this signature in database
6 changed files with 30 additions and 25 deletions

View file

@ -0,0 +1,24 @@
{
config,
lib,
pkgs,
...
}:
let
inherit (lib) mkEnableOption singleton optional;
inherit (pkgs) kitty;
cfg = config.desktop.terminal;
in
{
options.desktop.terminal = {
kitty.enable = mkEnableOption "";
ghostty.enable = mkEnableOption "";
};
config = {
home-manager.sharedModules = singleton {
home.packages = optional cfg.kitty.enable kitty;
programs.ghostty.enable = cfg.ghostty.enable;
};
};
}