@@ -13,6 +13,7 @@ let
1313
1414 theme = cfg.theme.package;
1515 icons = cfg.iconTheme.package;
16+ cursors = cfg.cursorTheme.package;
1617
1718 # The default greeter provided with this expression is the GTK greeter.
1819 # Again, we need a few things in the environment for the greeter to run with
@@ -29,7 +30,8 @@ let
2930 --set GTK_EXE_PREFIX "${theme}" \
3031 --set GTK_DATA_PREFIX "${theme}" \
3132 --set XDG_DATA_DIRS "${theme}/share:${icons}/share" \
32− --set XDG_CONFIG_HOME "${theme}/share"
33+ --set XDG_CONFIG_HOME "${theme}/share" \
34+ --set XCURSOR_PATH "${cursors}/share/icons"
3335
3436 cat - > $out/lightdm-gtk-greeter.desktop << EOF
3537 [Desktop Entry]
@@ -45,6 +47,8 @@ let
4547 [greeter]
4648 theme-name = ${cfg.theme.name}
4749 icon-theme-name = ${cfg.iconTheme.name}
50+ cursor-theme-name = ${cfg.cursorTheme.name}
51+ cursor-theme-size = ${toString cfg.cursorTheme.size}
4852 background = ${ldmcfg.background}
4953 ${optionalString (cfg.clock-format != null) "clock-format = ${cfg.clock-format}"}
5054 ${optionalString (cfg.indicators != null) "indicators = ${concatStringsSep ";" cfg.indicators}"}
@@ -108,6 +112,33 @@ in
108112
109113 };
110114
115+ cursorTheme = {
116+
117+ package = mkOption {
118+ default = pkgs.gnome3.defaultIconTheme;
119+ defaultText = "pkgs.gnome3.defaultIconTheme";
120+ description = ''
121+ The package path that contains the cursor theme given in the name option.
122+ '';
123+ };
124+
125+ name = mkOption {
126+ type = types.str;
127+ default = "Adwaita";
128+ description = ''
129+ Name of the cursor theme to use for the lightdm-gtk-greeter.
130+ '';
131+ };
132+
133+ size = mkOption {
134+ type = types.int;
135+ default = 16;
136+ description = ''
137+ Size of the cursor theme to use for the lightdm-gtk-greeter.
138+ '';
139+ };
140+ };
141+
111142 clock-format = mkOption {
112143 type = types.nullOr types.str;
113144 default = null;