refactor(homeModules/desktop): rm option declarations

This commit is contained in:
Mohammad Rafiq 2025-05-21 09:52:57 +08:00
parent ccdd8d19d9
commit aa9a28fa1c
No known key found for this signature in database
9 changed files with 16 additions and 32 deletions

View file

@ -1,16 +1,16 @@
{
config,
osConfig,
lib,
pkgs,
...
}:
{
config = lib.mkMerge [
(lib.mkIf (config.desktop.terminal == "kitty") {
(lib.mkIf (osConfig.desktop.terminal == "kitty") {
home.packages = with pkgs; [ kitty ];
home.sessionVariables.TERMINAL = "kitty";
})
(lib.mkIf (config.desktop.terminal == "ghostty") {
(lib.mkIf (osConfig.desktop.terminal == "ghostty") {
home.sessionVariables.TERMINAL = "ghostty -e";
programs.ghostty = {
enable = true;