diff options
author | Mihai Fufezan <[email protected]> | 2022-07-30 18:19:27 +0300 |
---|---|---|
committer | Mihai Fufezan <[email protected]> | 2022-07-30 18:19:27 +0300 |
commit | 59879e0bd1f30771b0dce57c324e1648a3ad1603 (patch) | |
tree | cc6de14e97122a57d7678e03cd08c85a05de795d /nix/module.nix | |
parent | 132b5ba5b6b99e4033b36797ed674c6aec673167 (diff) | |
download | Hyprland-59879e0bd1f30771b0dce57c324e1648a3ad1603.tar.gz Hyprland-59879e0bd1f30771b0dce57c324e1648a3ad1603.zip |
Nix module: make package nullable part 3
Diffstat (limited to 'nix/module.nix')
-rw-r--r-- | nix/module.nix | 2 |
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]; |