nixpkgs/pkgs/applications/window-managers/sway
Adam Joseph c7a7acb034
sway: respect systemdSupport and dbusSupport (#160972)
Sway can be compiled with or without systemd(-logind) and dbus.  This
commit exposes that support via the global systemdSupport and
dbusSupport arguments, which are understood by many other nixpkgs
expressions and can be set globally in ~/.config/nixpkgs/config.nix.

This commit also adds a third argument, trayEnabled, which allows to
disable sway's tray.  The tray requires dbusSupport and
systemdSupport.

Reviewers of this commit asked for potential use cases.  There are
many of them; a very non-exhaustive list includes:

* Use of nixpkgs on operating systems which systemd does not support,
  such as MacOS/Darwin, FreeBSD, OpenBSD, or Alpine Linux.

* Use of nixpkgs on *-musl platforms, which systemd does not
  officially support (out-of-tree patches to support musl exist for a
  few systemd versions).

* Use of sway in situations where dbus is inappropriate, such as
  sway's "kiosk mode".

* High-security environments, where the additional attack surface
  exposed by dbus outweighs any features it may offer.

This is a very non-exhaustive list.
2022-03-06 13:39:31 +01:00
..
bg.nix swaybg: support cross-compilation 2021-08-19 21:53:35 +02:00
contrib.nix treewide: stdenv.lib -> lib 2021-01-16 17:58:11 +07:00
default.nix sway: respect systemdSupport and dbusSupport (#160972) 2022-03-06 13:39:31 +01:00
fix-paths.patch sway: remove swaybg from path 2021-01-18 17:56:31 +01:00
idle.nix swayidle: honor systemdSupport 2022-02-23 14:33:29 -08:00
load-configuration-from-etc.patch sway: 1.5.1 -> 1.6 2021-04-08 17:24:24 +02:00
lock-effects.nix swaylock-effects: 1.6-2 -> 1.6-3 (#119869) 2021-04-19 21:09:33 +02:00
lock-fancy.nix swaylock-fancy: 2020-02-22 -> 2021-10-11 2021-10-20 13:09:57 +02:00
lock.nix swaylock: support cross-compilation 2021-07-03 11:22:33 +02:00
sway-config-nixos-paths.patch sway: Install the wallpapers by default and use them on NixOS 2021-05-14 16:37:11 +02:00
sway-config-no-nix-store-references.patch nixos/sway: Improve the module and adapt it to NixOS 2019-03-13 11:37:11 +01:00
wrapper.nix sway: respect systemdSupport and dbusSupport (#160972) 2022-03-06 13:39:31 +01:00
wsr.nix treewide: fix cargoSha256/cargoHash 2021-05-08 00:36:37 -07:00