Skip to content

nixos/dbus: dbusPakckage package always includes x11 libs #457332

@philipwilk

Description

@philipwilk

Nixpkgs version

  • Unstable (25.11)

Describe the bug

services.dbus.dbusPackage's dbus package always pulls in the x11 libs, even if services.xserver.enable is false. This doesnt make sense (if a headless server doesnt have x enabled then what's the point of enabling x support?)

Steps to reproduce

Have a system without xserver installed and no graphical apps; x11 is still pulled in just by the fact of systemd being enabled+dbus.

Expected behaviour

libx11 probably shouldnt be pulled in if x isnt enabled

Screenshots

No response

Relevant log output

Additional context

No response

System metadata

  • system: "x86_64-linux"
  • host os: Linux 6.16.12, NixOS, 25.11 (Xantusia), 25.11.20251025.6a08e6b
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.30.3
  • channels(root): "nixos"
  • nixpkgs: /nix/store/jd3y5kfy3ywv9lc229nz8vxqbrcyv93d-source

Notify maintainers

@NixOS/freedesktop

Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions