Skip to content

Commit d2dfeea

Browse files
authored
nixos/lxqt: add options iconThemePackage and extraPackages (#439536)
2 parents c37de9b + 873fabf commit d2dfeea

File tree

1 file changed

+22
-10
lines changed
  • nixos/modules/services/x11/desktop-managers

1 file changed

+22
-10
lines changed

nixos/modules/services/x11/desktop-managers/lxqt.nix

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
with lib;
1010

1111
let
12-
xcfg = config.services.xserver;
13-
cfg = xcfg.desktopManager.lxqt;
12+
cfg = config.services.xserver.desktopManager.lxqt;
1413

1514
in
1615

@@ -21,16 +20,27 @@ in
2120

2221
options = {
2322

24-
services.xserver.desktopManager.lxqt.enable = mkOption {
25-
type = types.bool;
26-
default = false;
27-
description = "Enable the LXQt desktop manager";
23+
services.xserver.desktopManager.lxqt.enable = mkEnableOption "the LXQt desktop manager";
24+
25+
services.xserver.desktopManager.lxqt.iconThemePackage =
26+
lib.mkPackageOption pkgs [ "kdePackages" "breeze-icons" ] { }
27+
// {
28+
description = "The package that provides a default icon theme.";
29+
};
30+
31+
services.xserver.desktopManager.lxqt.extraPackages = lib.mkOption {
32+
type = with lib.types; listOf package;
33+
default = [ ];
34+
defaultText = lib.literalExpression "[ ]";
35+
example = lib.literalExpression "with pkgs; [ xscreensaver ]";
36+
description = "Extra packages to be installed system wide.";
2837
};
2938

3039
environment.lxqt.excludePackages = mkOption {
40+
type = with lib.types; listOf package;
3141
default = [ ];
32-
example = literalExpression "[ pkgs.lxqt.qterminal ]";
33-
type = types.listOf types.package;
42+
defaultText = lib.literalExpression "[ ]";
43+
example = lib.literalExpression "with pkgs; [ lxqt.qterminal ]";
3444
description = "Which LXQt packages to exclude from the default environment";
3545
};
3646

@@ -61,15 +71,17 @@ in
6171
environment.systemPackages =
6272
pkgs.lxqt.preRequisitePackages
6373
++ pkgs.lxqt.corePackages
64-
++ (utils.removePackagesByName pkgs.lxqt.optionalPackages config.environment.lxqt.excludePackages);
74+
++ [ cfg.iconThemePackage ]
75+
++ (utils.removePackagesByName pkgs.lxqt.optionalPackages config.environment.lxqt.excludePackages)
76+
++ cfg.extraPackages;
6577

6678
# Link some extra directories in /run/current-system/software/share
6779
environment.pathsToLink = [ "/share" ];
6880

6981
programs.gnupg.agent.pinentryPackage = mkDefault pkgs.pinentry-qt;
7082

7183
# virtual file systems support for PCManFM-QT
72-
services.gvfs.enable = true;
84+
services.gvfs.enable = mkDefault true;
7385

7486
services.upower.enable = config.powerManagement.enable;
7587

0 commit comments

Comments
 (0)