about summary refs log tree commit diff
path: root/nixos/modules/programs
diff options
context:
space:
mode:
authorMichael Weiss <dev.primeos@gmail.com>2019-12-09 14:11:24 +0100
committerMichael Weiss <dev.primeos@gmail.com>2019-12-09 14:18:03 +0100
commitca9788d4de3ba787d670a94948efd1d3ed2977e6 (patch)
tree3c67d4676f3444910f5e31fc566ecabcc9d22b2c /nixos/modules/programs
parent4538eeac6ffca9810488825b5dc1e8d500a20374 (diff)
downloadnixlib-ca9788d4de3ba787d670a94948efd1d3ed2977e6.tar
nixlib-ca9788d4de3ba787d670a94948efd1d3ed2977e6.tar.gz
nixlib-ca9788d4de3ba787d670a94948efd1d3ed2977e6.tar.bz2
nixlib-ca9788d4de3ba787d670a94948efd1d3ed2977e6.tar.lz
nixlib-ca9788d4de3ba787d670a94948efd1d3ed2977e6.tar.xz
nixlib-ca9788d4de3ba787d670a94948efd1d3ed2977e6.tar.zst
nixlib-ca9788d4de3ba787d670a94948efd1d3ed2977e6.zip
nixos/sway: Enable the display manager integration
If no display manager is enabled this will not make any difference, but
if a Wayland compatible display manager like SDDM is enabled, a session
for Sway will be available. Therefore it does make sense to enable this
by default.

This adds the display manager integration mentioned in #57602.
Diffstat (limited to 'nixos/modules/programs')
-rw-r--r--nixos/modules/programs/sway.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/programs/sway.nix b/nixos/modules/programs/sway.nix
index f92d09a7ef44..9a15c7734632 100644
--- a/nixos/modules/programs/sway.nix
+++ b/nixos/modules/programs/sway.nix
@@ -87,6 +87,8 @@ in {
     hardware.opengl.enable = mkDefault true;
     fonts.enableDefaultFonts = mkDefault true;
     programs.dconf.enable = mkDefault true;
+    # To make a Sway session available if a display manager like SDDM is enabled:
+    services.xserver.displayManager.extraSessionFilePackages = [ swayJoined ];
   };
 
   meta.maintainers = with lib.maintainers; [ gnidorah primeos colemickens ];