nixos/lightdm-greeters/slick: Add options for cursor themes

These options are newly added in 1.6.0.

Changed files
+31
nixos
modules
services
x11
display-managers
lightdm-greeters
+31
nixos/modules/services/x11/display-managers/lightdm-greeters/slick.nix
···
theme = cfg.theme.package;
icons = cfg.iconTheme.package;
font = cfg.font.package;
+
cursors = cfg.cursorTheme.package;
slickGreeterConf = writeText "slick-greeter.conf" ''
[Greeter]
···
theme-name=${cfg.theme.name}
icon-theme-name=${cfg.iconTheme.name}
font-name=${cfg.font.name}
+
cursor-theme-name=${cfg.cursorTheme.name}
+
cursor-theme-size=${toString cfg.cursorTheme.size}
draw-user-backgrounds=${boolToString cfg.draw-user-backgrounds}
${cfg.extraConfig}
'';
···
};
};
+
cursorTheme = {
+
package = mkOption {
+
type = types.package;
+
default = pkgs.gnome.adwaita-icon-theme;
+
defaultText = literalExpression "pkgs.gnome.adwaita-icon-theme";
+
description = lib.mdDoc ''
+
The package path that contains the cursor theme given in the name option.
+
'';
+
};
+
+
name = mkOption {
+
type = types.str;
+
default = "Adwaita";
+
description = lib.mdDoc ''
+
Name of the cursor theme to use for the lightdm-slick-greeter.
+
'';
+
};
+
+
size = mkOption {
+
type = types.int;
+
default = 24;
+
description = lib.mdDoc ''
+
Size of the cursor theme to use for the lightdm-slick-greeter.
+
'';
+
};
+
};
+
draw-user-backgrounds = mkEnableOption (lib.mdDoc "draw user backgrounds");
extraConfig = mkOption {
···
};
environment.systemPackages = [
+
cursors
icons
theme
];