lol

nixos/qt5ct: remove enable option and suggests qt5.platformTheme

This module should be removed after a nixos release cycle

+4 -26
+4 -26
nixos/modules/programs/qt5ct.nix
··· 1 - { config, lib, pkgs, ... }: 1 + { lib, ... }: 2 2 3 3 with lib; 4 4 5 5 { 6 - meta.maintainers = [ maintainers.romildo ]; 7 - 8 - ###### interface 9 - options = { 10 - programs.qt5ct = { 11 - enable = mkOption { 12 - default = false; 13 - type = types.bool; 14 - description = '' 15 - Whether to enable the Qt5 Configuration Tool (qt5ct), a 16 - program that allows users to configure Qt5 settings (theme, 17 - font, icons, etc.) under desktop environments or window 18 - manager without Qt integration. 19 - 20 - Official home page: <link xlink:href="https://sourceforge.net/projects/qt5ct/">https://sourceforge.net/projects/qt5ct/</link> 21 - ''; 22 - }; 23 - }; 24 - }; 25 - 26 - ###### implementation 27 - config = mkIf config.programs.qt5ct.enable { 28 - environment.variables.QT_QPA_PLATFORMTHEME = "qt5ct"; 29 - environment.systemPackages = with pkgs; [ libsForQt5.qt5ct ]; 30 - }; 6 + imports = [ 7 + (mkRemovedOptionModule [ "programs" "qt5ct" "enable" ] "Use qt5.platformTheme = \"qt5ct\" instead.") 8 + ]; 31 9 }