gnome/nixos: rename services.displayManager.{ => generic.}environment

Rename the services.displayManager.environment option to
services.displayManager.generic.environment, following upstream commit
[1] ("nixos/display-managers: move "generic" DM unit to its own option
set").

[1]: e49259f489

Link: https://github.com/nix-community/stylix/pull/2159
Link: https://github.com/nix-community/stylix/pull/2180

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
This commit is contained in:
Shahar "Dawn" Or 2026-01-25 19:05:52 +07:00 committed by NAHO
parent ce740cf112
commit 5219ebad24
No known key found for this signature in database
GPG key ID: BFB5D5E3F4C95185

View file

@ -55,9 +55,9 @@ in
# Cursor and icon settings are usually applied via Home Manager,
# but the login screen uses a separate database.
services.displayManager.environment.XDG_DATA_DIRS = lib.mkIf (iconCfg != null) (
(lib.makeSearchPath "share" [ iconCfg.package ]) + ":"
);
services.displayManager.generic.environment.XDG_DATA_DIRS = lib.mkIf (
iconCfg != null
) ((lib.makeSearchPath "share" [ iconCfg.package ]) + ":");
environment.systemPackages = lib.mkIf (cursorCfg != null) [ cursorCfg.package ];
programs.dconf.profiles.gdm.databases = lib.mkMerge [
(lib.mkIf (cursorCfg != null) [