From 59879e0bd1f30771b0dce57c324e1648a3ad1603 Mon Sep 17 00:00:00 2001 From: Mihai Fufezan Date: Sat, 30 Jul 2022 18:19:27 +0300 Subject: [PATCH] Nix module: make package nullable part 3 --- nix/module.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix/module.nix b/nix/module.nix index 3f33c6fb..aae16f38 100644 --- a/nix/module.nix +++ b/nix/module.nix @@ -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];