diff --git a/modules/nixos/programs/gnome-session/default.nix b/modules/nixos/programs/gnome-session/default.nix index edceb310..4a16485b 100644 --- a/modules/nixos/programs/gnome-session/default.nix +++ b/modules/nixos/programs/gnome-session/default.nix @@ -296,7 +296,7 @@ in config = lib.mkIf (cfg.sessions != { }) { # Install all of the desktop session files. - services.xserver.displayManager.sessionPackages = sessionPackages; + services.displayManager.sessionData = sessionPackages; environment.systemPackages = [ cfg.package ] ++ sessionPackages; # Make sure it is searchable within gnome-session. diff --git a/modules/nixos/programs/sessiond/default.nix b/modules/nixos/programs/sessiond/default.nix index ff84c6e0..e2998e9e 100644 --- a/modules/nixos/programs/sessiond/default.nix +++ b/modules/nixos/programs/sessiond/default.nix @@ -186,7 +186,7 @@ in environment.systemPackages = [ cfg.package ]; # Install all of the desktop session files. - services.xserver.displayManager.sessionPackages = sessionPackages; + services.displayManager.sessionData = sessionPackages; # Import those systemd units from sessiond as well. systemd.packages = [ cfg.package ];