diff options
author | Bobby Rong <rjl931189261@126.com> | 2022-12-03 10:26:46 +0800 |
---|---|---|
committer | Bobby Rong <rjl931189261@126.com> | 2022-12-04 11:20:51 +0800 |
commit | 1b6468cfb48712cad1d14deaba959ceaf22a9bb3 (patch) | |
tree | 59367bc98db6fbced31fc2e115643f01f5a72b30 /nixos | |
parent | 118b5e39711bc206dc16c7d2de92aba05db22e84 (diff) |
nixos/lightdm-greeters/slick: Add options for cursor themes
These options are newly added in 1.6.0.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/x11/display-managers/lightdm-greeters/slick.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/nixos/modules/services/x11/display-managers/lightdm-greeters/slick.nix b/nixos/modules/services/x11/display-managers/lightdm-greeters/slick.nix index 00fa8af71dc54..4456374cc569e 100644 --- a/nixos/modules/services/x11/display-managers/lightdm-greeters/slick.nix +++ b/nixos/modules/services/x11/display-managers/lightdm-greeters/slick.nix @@ -11,6 +11,7 @@ let theme = cfg.theme.package; icons = cfg.iconTheme.package; font = cfg.font.package; + cursors = cfg.cursorTheme.package; slickGreeterConf = writeText "slick-greeter.conf" '' [Greeter] @@ -18,6 +19,8 @@ let 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} ''; @@ -84,6 +87,33 @@ in }; }; + 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 { @@ -107,6 +137,7 @@ in }; environment.systemPackages = [ + cursors icons theme ]; |