diff --git a/nixos/modules/services/x11/desktop-managers/default.nix b/nixos/modules/services/x11/desktop-managers/default.nix index 6509a8a16c98..13f339e3fbf3 100644 --- a/nixos/modules/services/x11/desktop-managers/default.nix +++ b/nixos/modules/services/x11/desktop-managers/default.nix @@ -109,5 +109,9 @@ in }; - xcfg.displayManager.session = cfg.session.list; + config = { + services.xserver.displayManager.session = cfg.session.list; + environment.systemPackages = + mkIf cfg.session.needBGPackages [ pkgs.feh ]; # xsetroot via xserver.enable + }; }