Commit a31f964
Changed files (1)
modules
desktop
modules/desktop/utils.nix
@@ -1,7 +1,23 @@
-{
+{lib, ...}: {
flake.modules.nixos.desktop = {config, ...}: {
services.gvfs.enable = true; # Mount, trash, and other functionalities
services.xserver.xkb.layout = "us";
services.blueman.enable = config.hardware.bluetooth.enable;
};
+
+ flake.modules.homeManager.desktop = {config, ...}: {
+ # Fix some QT applications not following the color scheme, such as KDE Connect.
+ # See https://github.com/nix-community/stylix/issues/1958#issuecomment-3607824025
+ xdg.configFile.kdeglobals.source = let
+ themePackage = builtins.head (
+ builtins.filter (
+ p: builtins.match ".*stylix-kde-theme.*" (baseNameOf p) != null
+ )
+ config.home.packages
+ );
+ colorSchemeSlug = lib.concatStrings (
+ lib.filter lib.isString (builtins.split "[^a-zA-Z]" config.lib.stylix.colors.scheme)
+ );
+ in "${themePackage}/share/color-schemes/${colorSchemeSlug}.colors";
+ };
}