From b65010283ca6831b4db44d3fd5c8474149590a9b Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Thu, 30 Apr 2026 02:12:16 -0700 Subject: [PATCH] desktop: configure qtct appearance --- nixos/desktop.nix | 9 +++++++++ nixos/environment.nix | 1 + nixos/home-manager.nix | 29 +++++++++++++++++++++++++++++ 3 files changed, 39 insertions(+) diff --git a/nixos/desktop.nix b/nixos/desktop.nix index 925d65c6..eded50f4 100644 --- a/nixos/desktop.nix +++ b/nixos/desktop.nix @@ -98,6 +98,13 @@ let }; }; }; + + xdg.configFile."ghostty/config" = { + force = true; + text = '' + confirm-close-surface = false + ''; + }; } ]; @@ -110,6 +117,8 @@ let hicolor-icon-theme # libsForQt5.breeze-gtk # materia-theme + kdePackages.qt6ct + libsForQt5.qt5ct numix-icon-theme-circle papirus-icon-theme diff --git a/nixos/environment.nix b/nixos/environment.nix index b965ce0b..28988860 100644 --- a/nixos/environment.nix +++ b/nixos/environment.nix @@ -88,6 +88,7 @@ with lib; NIXPKGS_GIT_REV = "${inputs.nixpkgs.rev}"; NIXPKGS_SOURCE = "${inputs.nixpkgs.outPath}"; EDITOR = "emacsclient --alternate-editor emacs"; + QT_QPA_PLATFORMTHEME = "qt6ct"; }; interactiveShellInit = '' _df_is_managed_ssh_host() { diff --git a/nixos/home-manager.nix b/nixos/home-manager.nix index 96c053db..c1561691 100644 --- a/nixos/home-manager.nix +++ b/nixos/home-manager.nix @@ -152,6 +152,33 @@ [Removed Associations] ''; + qtctConfig = '' + [Appearance] + color_scheme_path= + custom_palette=false + icon_theme=Numix-Circle + standard_dialogs=default + style=Fusion + + [Fonts] + fixed="Noto Sans,10,-1,5,50,0,0,0,0,0" + general="Noto Sans,10,-1,5,50,0,0,0,0,0" + + [Interface] + activate_item_on_single_click=1 + buttonbox_layout=0 + cursor_flash_time=1000 + dialog_buttons_have_icons=1 + double_click_interval=400 + gui_effects=@Invalid() + keyboard_scheme=2 + menus_have_icons=true + show_shortcuts_in_context_menus=true + stylesheets=@Invalid() + toolbutton_style=4 + underline_shortcut=1 + wheel_scroll_lines=3 + ''; in { # Automatic garbage collection of old home-manager generations nix.gc = { @@ -173,6 +200,8 @@ in { static_history = [] ''; + xdg.configFile."qt5ct/qt5ct.conf".text = qtctConfig; + xdg.configFile."qt6ct/qt6ct.conf".text = qtctConfig; xdg.configFile."zellij/config.kdl".source = config.lib.file.mkOutOfStoreSymlink