diff options
author | Franz Pletz <fpletz@fnordicwalking.de> | 2019-02-03 09:09:48 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-03 09:09:48 +0000 |
commit | 14dd9ca1b212d7f10b459e7ff62a2866cdfeaba9 (patch) | |
tree | f3e6e8c5063c9d348a69e43c82fb225527b1284a /nixos/modules | |
parent | 60c4686bb9c8291f1fca56b3b433be458a522ae5 (diff) | |
parent | 4ad82dd6cdd01d195a929a786d006e63ada7a90f (diff) | |
download | nixlib-14dd9ca1b212d7f10b459e7ff62a2866cdfeaba9.tar nixlib-14dd9ca1b212d7f10b459e7ff62a2866cdfeaba9.tar.gz nixlib-14dd9ca1b212d7f10b459e7ff62a2866cdfeaba9.tar.bz2 nixlib-14dd9ca1b212d7f10b459e7ff62a2866cdfeaba9.tar.lz nixlib-14dd9ca1b212d7f10b459e7ff62a2866cdfeaba9.tar.xz nixlib-14dd9ca1b212d7f10b459e7ff62a2866cdfeaba9.tar.zst nixlib-14dd9ca1b212d7f10b459e7ff62a2866cdfeaba9.zip |
Merge pull request #54706 from pbogdan/lightdm-cursors
nixos/lightdm: allow cursor theme customisation.
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/services/x11/display-managers/lightdm-greeters/gtk.nix | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/nixos/modules/services/x11/display-managers/lightdm-greeters/gtk.nix b/nixos/modules/services/x11/display-managers/lightdm-greeters/gtk.nix index 505c90ea95ca..efec943c0075 100644 --- a/nixos/modules/services/x11/display-managers/lightdm-greeters/gtk.nix +++ b/nixos/modules/services/x11/display-managers/lightdm-greeters/gtk.nix @@ -13,6 +13,7 @@ let theme = cfg.theme.package; icons = cfg.iconTheme.package; + cursors = cfg.cursorTheme.package; # The default greeter provided with this expression is the GTK greeter. # Again, we need a few things in the environment for the greeter to run with @@ -29,7 +30,8 @@ let --set GTK_EXE_PREFIX "${theme}" \ --set GTK_DATA_PREFIX "${theme}" \ --set XDG_DATA_DIRS "${theme}/share:${icons}/share" \ - --set XDG_CONFIG_HOME "${theme}/share" + --set XDG_CONFIG_HOME "${theme}/share" \ + --set XCURSOR_PATH "${cursors}/share/icons" cat - > $out/lightdm-gtk-greeter.desktop << EOF [Desktop Entry] @@ -45,6 +47,8 @@ let [greeter] theme-name = ${cfg.theme.name} icon-theme-name = ${cfg.iconTheme.name} + cursor-theme-name = ${cfg.cursorTheme.name} + cursor-theme-size = ${toString cfg.cursorTheme.size} background = ${ldmcfg.background} ${optionalString (cfg.clock-format != null) "clock-format = ${cfg.clock-format}"} ${optionalString (cfg.indicators != null) "indicators = ${concatStringsSep ";" cfg.indicators}"} @@ -108,6 +112,33 @@ in }; + cursorTheme = { + + package = mkOption { + default = pkgs.gnome3.defaultIconTheme; + defaultText = "pkgs.gnome3.defaultIconTheme"; + description = '' + The package path that contains the cursor theme given in the name option. + ''; + }; + + name = mkOption { + type = types.str; + default = "Adwaita"; + description = '' + Name of the cursor theme to use for the lightdm-gtk-greeter. + ''; + }; + + size = mkOption { + type = types.int; + default = 16; + description = '' + Size of the cursor theme to use for the lightdm-gtk-greeter. + ''; + }; + }; + clock-format = mkOption { type = types.nullOr types.str; default = null; |