home-manager icon indicating copy to clipboard operation
home-manager copied to clipboard

bug: ConditionEnvironment=WAYLAND_DISPLAY was not met

Open Denperidge opened this issue 1 month ago • 1 comments

Are you following the right branch?

  • [x] My Nixpkgs and Home Manager versions are in sync

Is there an existing issue for this?

  • [x] I have searched the existing issues

Issue description

The source is yet to be determined, but both wpaperd and swayidle suffer from the same unmet condition.

Relevant information

  • I'm using the Niri compositor and Ly displaymanager, both from nixpkgs 25.11 on NixOS 25.11
  • As such, I'm using home-manager release 25.11
  • I assumed me adding to an issue from 2024 would be unhelpful, but it is the same issue as #6219

Swayidle

Configuration

home-manager.users.cat = {
    services.swayidle = {
      enable = true;
      timeouts = [
        {
          timeout = 30;
          command = "${pkgs.swaylock-effects}/bin/swaylock";
        }
      ];
    };
#...

Output

○ swayidle.service - Idle manager for Wayland
     Loaded: loaded (/home/cat/.config/systemd/user/swayidle.service; enabled; preset: ignored)
     Active: inactive (dead)
  Condition: start condition unmet at Mon 2025-12-08 15:51:49 CET; 1min 2s ago
             └─ ConditionEnvironment=WAYLAND_DISPLAY was not met
       Docs: man:swayidle(1)

Dec 08 15:51:49 Wolf systemd[1852]: Idle manager for Wayland was skipped because of an unmet condition check (ConditionEnvironment=WAYLAND_DISPLAY).

Best guesses as to what the problem is

  • Combining Niri from nixpkgs and wayland tools from home-manager
  • The patch from the aforementioned issue perhaps not working with Niri

Maintainer CC

@c0deaddict

System information

- system: `"x86_64-linux"`
 - host os: `Linux 6.12.59, NixOS, 25.11 (Xantusia), 25.11.650.8bb5646e0bed`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.31.2`
 - channels(root): `"nixos-25.11"`
 - nixpkgs: `/nix/store/z1dcmczhn4abgvm94nqmdm1lc4i2df4f-nixos-25.11/nixos`

Denperidge avatar Dec 08 '25 15:12 Denperidge

Fixed temporarily by removing the condition and letting it crash + restart

systemd.user.services.wpaperd.Unit.ConditionEnvironment = lib.mkForce "";
systemd.user.services.swayidle.Unit.ConditionEnvironment = lib.mkForce "";

Denperidge avatar Dec 09 '25 20:12 Denperidge