Switching from Sway to Niri on NixOS – installation issues

Hi,

I’ve been using NixOS recently with Sway, but now I want to switch to Niri. However, switching to Niri hasn’t been easy — I ran into issues right at the installation step.

I installed Niri with:
programs.niri.enable = true;

and disabled Sway along with related packages. But after rebooting, I encountered the following error messages:
Errors from xkbcomp are not fatal to the X server

[Parent 1275, Main Thread] WARNING: Failed to enumerate devices of org.freedesktop.UPower: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
:‘glib warning’, file /build/firefox-142.8.1/toolkit/xre/nsSigHandlers.cpp:201

(firefox:1275): WARNING **: Failed to enumerate devices of org.freedesktop.UPower: GDBus.Error: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any service files

So my questions are:

  1. What’s the correct way to switch from Sway to Niri (or to any other window manager) on NixOS?
  2. Why do these errors appear to be related to Firefox instead of Niri itself?

Thanks in advance!

Because they have nothing to do with niri? Firefox is looking for the power profiles daemon and not finding it. You’ve likely always had this problem and it wasn’t logged. niri-session runs itself as a systemd service by default, sway doesn’t and this has implications for which logs hit the journal. You can install ppd if you want and that error will go away. I have same error, but I am on a desktop and couldn’t care less about ppd.

3 Likes

Because they are!

This error at least is Firefox complaining that you don’t have upower, which is just a dbus API which Firefox wants to use to figure out whether you’re charging your laptop or not.

This may be just part of that error message, what you copied out isn’t enough to tell what’s going on.

What issues do you actually have with niri?

2 Likes

Thanks for the clarification!

1 Like