1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-27 20:29:47 +01:00

xcursor: remove warning and use mkDefault for GTK options (#2808)

This commit is contained in:
Naïm Favier 2022-03-20 18:32:34 +01:00 committed by GitHub
parent 0fad959df8
commit 57476b5d28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,11 +60,6 @@ in {
platforms.linux)
];
warnings = [''
GTK cursor settings will no longer be handled in the xsession.pointerCursor module in future.
Please use gtk.cursorTheme for GTK cursor settings instead.
''];
home.packages = [ cfg.package ];
xsession.initExtra = ''
@ -78,8 +73,7 @@ in {
"Xcursor.size" = cfg.size;
};
# TODO: deprecate after next version release.
gtk.cursorTheme = { inherit (cfg) package name size; };
gtk.cursorTheme = mkDefault { inherit (cfg) package name size; };
# Set name in icons theme, for compatibility with AwesomeWM etc. See:
# https://github.com/nix-community/home-manager/issues/2081