aboutsummaryrefslogtreecommitdiffhomepage
path: root/nix
diff options
context:
space:
mode:
authorMihai Fufezan <[email protected]>2022-07-30 18:19:27 +0300
committerMihai Fufezan <[email protected]>2022-07-30 18:19:27 +0300
commit59879e0bd1f30771b0dce57c324e1648a3ad1603 (patch)
treecc6de14e97122a57d7678e03cd08c85a05de795d /nix
parent132b5ba5b6b99e4033b36797ed674c6aec673167 (diff)
downloadHyprland-59879e0bd1f30771b0dce57c324e1648a3ad1603.tar.gz
Hyprland-59879e0bd1f30771b0dce57c324e1648a3ad1603.zip
Nix module: make package nullable part 3
Diffstat (limited to 'nix')
-rw-r--r--nix/module.nix2
1 files changed, 1 insertions, 1 deletions
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];