Update kde packages to kde6
This commit is contained in:
		
							parent
							
								
									cbb3278b8f
								
							
						
					
					
						commit
						2de8a9e979
					
				
					 8 changed files with 41 additions and 256 deletions
				
			
		| 
						 | 
				
			
			@ -1,21 +1,16 @@
 | 
			
		|||
{ self, lib, config, pkgs, ... }: {
 | 
			
		||||
  environment.systemPackages = with pkgs; [
 | 
			
		||||
    qt5ct
 | 
			
		||||
    breeze-qt5
 | 
			
		||||
    breeze-gtk
 | 
			
		||||
    breeze-icons
 | 
			
		||||
    qt6.qtwayland
 | 
			
		||||
    kdePackages.breeze
 | 
			
		||||
    kdePackages.breeze-icons
 | 
			
		||||
    qt6.qtsvg # needed to load breeze icons
 | 
			
		||||
 | 
			
		||||
    kdePackages.qqc2-desktop-style
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  environment.variables = let
 | 
			
		||||
    qmlPackages = with pkgs; [
 | 
			
		||||
      plasma5Packages.qqc2-desktop-style
 | 
			
		||||
      plasma5Packages.kirigami2
 | 
			
		||||
    ];
 | 
			
		||||
 | 
			
		||||
    qtVersion = pkgs.qt515.qtbase.version;
 | 
			
		||||
  in {
 | 
			
		||||
    "QT_QPA_PLATFORMTHEME" = "qt5ct";
 | 
			
		||||
    "QML2_IMPORT_PATH" = "${lib.concatStringsSep ":" (builtins.map (p: "${p}/lib/qt-${qtVersion}/qml") qmlPackages)}";
 | 
			
		||||
  qt = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    platformTheme = "qt5ct";
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  home-manager.users.${config.main-user} = {
 | 
			
		||||
| 
						 | 
				
			
			@ -24,11 +19,8 @@
 | 
			
		|||
      Inherits=breeze_cursors
 | 
			
		||||
    '';
 | 
			
		||||
 | 
			
		||||
    xdg.configFile = {
 | 
			
		||||
      # fixes dolphin background colors
 | 
			
		||||
      "kdeglobals".source = "${pkgs.breeze-qt5}/share/color-schemes/BreezeDark.colors";
 | 
			
		||||
 | 
			
		||||
      "qt5ct/qt5ct.conf".text = ''
 | 
			
		||||
    xdg.configFile = let
 | 
			
		||||
      qtctConf = colors: ''
 | 
			
		||||
        [Appearance]
 | 
			
		||||
        style=Breeze
 | 
			
		||||
        icon_theme=breeze-dark
 | 
			
		||||
| 
						 | 
				
			
			@ -36,7 +28,7 @@
 | 
			
		|||
 | 
			
		||||
        # Cantata misbehaves without color overrides. This overrides the breeze colors with the
 | 
			
		||||
        # exact same colors.
 | 
			
		||||
        color_scheme_path=${./breeze-dark-colors-override.conf}
 | 
			
		||||
        color_scheme_path=${colors}
 | 
			
		||||
        custom_palette=true
 | 
			
		||||
 | 
			
		||||
        [Interface]
 | 
			
		||||
| 
						 | 
				
			
			@ -52,22 +44,31 @@
 | 
			
		|||
        underline_shortcut=1
 | 
			
		||||
        wheel_scroll_lines=3
 | 
			
		||||
      '';
 | 
			
		||||
    in {
 | 
			
		||||
      # fixes dolphin background colors
 | 
			
		||||
      "kdeglobals".source = "${pkgs.kdePackages.breeze}/share/color-schemes/BreezeDark.colors";
 | 
			
		||||
 | 
			
		||||
      "qt5ct/qt5ct.conf".text = qtctConf ./colors-qt5ct.conf;
 | 
			
		||||
      "qt6ct/qt6ct.conf".text = qtctConf ./colors-qt6ct.conf;
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    gtk = {
 | 
			
		||||
      enable = true;
 | 
			
		||||
      theme = {
 | 
			
		||||
        package = pkgs.breeze-gtk;
 | 
			
		||||
        package = pkgs.kdePackages.breeze-gtk;
 | 
			
		||||
        name = "Breeze-Dark";
 | 
			
		||||
      };
 | 
			
		||||
      iconTheme = {
 | 
			
		||||
        package = pkgs.breeze-icons;
 | 
			
		||||
        package = pkgs.kdePackages.breeze-icons;
 | 
			
		||||
        name = "breeze-dark";
 | 
			
		||||
      };
 | 
			
		||||
      cursorTheme = {
 | 
			
		||||
        package = pkgs.breeze-gtk;
 | 
			
		||||
        package = pkgs.kdePackages.breeze-gtk;
 | 
			
		||||
        name = "breeze_cursors";
 | 
			
		||||
      };
 | 
			
		||||
 | 
			
		||||
      gtk3.extraConfig.gtk-xft-rgba = "rgb";
 | 
			
		||||
      gtk4.extraConfig.gtk-xft-rgba = "rgb";
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue