Nix module: make package nullable part 3

This commit is contained in:
Mihai Fufezan 2022-07-30 18:19:27 +03:00
parent 132b5ba5b6
commit 59879e0bd1
No known key found for this signature in database
GPG Key ID: 5899325F2F120900
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ in {
hardware.opengl.enable = mkDefault true;
fonts.enableDefaultFonts = mkDefault true;
programs.dconf.enable = mkDefault true;
services.xserver.displayManager.sessionPackages = [cfg.package];
services.xserver.displayManager.sessionPackages = lib.optional (cfg.package != null) cfg.package;
programs.xwayland.enable = mkDefault true;
xdg.portal.enable = mkDefault true;
xdg.portal.extraPortals = [pkgs.xdg-desktop-portal-wlr];