WM won't load, and configuration doesn't stay after boot?

Hi everyone, I’m relatively new to nixOS, and recently started writing my own configuration from scratch. I’ve encountered a few errors that I haven’t been able to solve myself, so I’d appreciate some help with them.

If rebuild my configuration with the command `sudo nixos-rebuild switch --flake .#lyra`, my previous display manager etc., stop, but the new ones don’t start (I rewrote my configuration to use a different one). I have configured my new login manager as auto login with greetd, my compositor as niri, and I also have a wayland configuration file. I’m not really sure what I’ve done wrong that is causing the compositor to not appear (all relevant configurations are linked above), as I’ve looked at other people’s configurations, but I’m obviously missing something. I think it puts me in a TTY kind of thing (sorry I don’t know much about this stuff) where I can type but they don’t seem to be registered as commands. What’s weirder is when I force shut down the computer via the power button, and switch it back on, the new configuration is not listed, and it boots into the previous one automatically. I’ve also checked the history of configurations, and its just not there. Not sure what I’m doing wrong here.

As I said above, I’m relatively new here, so I appreciate any and all advice and help. Also apologies for the whole configuration not being documented - I was going to document it but was planning to do that after I got the system up and running, which obviously hasn’t occurred yet. If I need to explain any parts of it feel free to ask.

That means the activation script fails. If it just yanks your graphical session I can imagine the process being killed during activation, which would have this effect. Your WM should not be restarting, those things are normally exempted from the whole restart-everything loop, not sure how you’ve accomplished this. Maybe a mistake in your config causes niri to crash when it reloads it? Idk, never used niri.

Anyway, read (and share) the output of journalctl -e.

I don’t know much about these logs, but nothing stands out to me. I guess the line nixos-rebuild-switch-to-configuration.service: Deactivated successfully could, but then right after it says its starting the switch to the new system configuration? Not entirely sure though - nothing else stands out to me. Idk if this helps, but the folder with the system configuration it says it is switching to still exists after a restart.

Oct 29 09:52:36 nixOS systemd[1]: Starting [systemd-run] /nix/store/rry6qingvsrqmc7ll7jgaqpybcbdgf5v-coreutils-9.7/bin/true...
Oct 29 09:52:36 nixOS systemd[1]: Started [systemd-run] /nix/store/rry6qingvsrqmc7ll7jgaqpybcbdgf5v-coreutils-9.7/bin/true.
Oct 29 09:52:36 nixOS systemd[1]: nixos-rebuild-switch-to-configuration.service: Deactivated successfully.
Oct 29 09:52:36 nixOS systemd[1]: Starting [systemd-run] /nix/store/y1p90mh0n1w4239swb238w4rxr44lghm-nixos-system-lyra-25.05.20251026.78e34d1/bin/switch-to-configuration switch...
Oct 29 09:52:36 nixOS systemd[1]: Started [systemd-run] /nix/store/y1p90mh0n1w4239swb238w4rxr44lghm-nixos-system-lyra-25.05.20251026.78e34d1/bin/switch-to-configuration switch.
Oct 29 09:52:54 nixOS hyprland-dialog[64481]: QThreadStorage: entry 4 destroyed before end of thread 0x2fc0dd40
Oct 29 09:52:54 nixOS hyprland-dialog[64481]: QThreadStorage: entry 2 destroyed before end of thread 0x2fc0dd40
Oct 29 09:52:54 nixOS hyprland-dialog[64481]: QThreadStorage: entry 1 destroyed before end of thread 0x2fc0dd40
Oct 29 09:53:00 nixOS nixos[64324]: switching to system configuration /nix/store/y1p90mh0n1w4239swb238w4rxr44lghm-nixos-system-lyra-25.05.20251026.78e34d1
Oct 29 09:53:00 nixOS systemd[1]: NetworkManager-wait-online.service: Deactivated successfully.
Oct 29 09:53:00 nixOS systemd[1]: Stopped Network Manager Wait Online.
Oct 29 09:53:02 nixOS kernel: wlp0s20f0u4: deauthenticating from d6:92:5e:d7:40:13 by local choice (Reason: 3=DEAUTH_LEAVING)
Oct 29 09:53:02 nixOS lact[1224]: 2025-10-29T09:53:02.003461Z  INFO lact_daemon: cleaning up and shutting down...
Oct 29 09:53:02 nixOS wpa_supplicant[1020]: nl80211: send_event_marker failed: Source based routing not supported
Oct 29 09:53:02 nixOS wpa_supplicant[1020]: wlp0s20f0u4: CTRL-EVENT-DISCONNECTED bssid=d6:92:5e:d7:40:13 reason=3 locally_generated=1
Oct 29 09:53:02 nixOS wpa_supplicant[1020]: wlp0s20f0u4: CTRL-EVENT-DSCP-POLICY clear_all
Oct 29 09:53:02 nixOS wpa_supplicant[1020]: wlp0s20f0u4: CTRL-EVENT-DSCP-POLICY clear_all
Oct 29 09:53:02 nixOS wpa_supplicant[1020]: nl80211: deinit ifname=wlp0s20f0u4 disabled_11b_rates=0
Oct 29 09:53:02 nixOS wpa_supplicant[1020]: wlp0s20f0u4: CTRL-EVENT-TERMINATING
Oct 29 09:53:02 nixOS thermald[847]: [1761731580][MSG]Terminating ...
Oct 29 09:53:02 nixOS thermald[847]: [1761731581][MSG]terminating on user request ..
Oct 29 09:53:00 nixOS systemd[1]: Stopping SSH Daemon...
Oct 29 09:53:00 nixOS systemd[1]: logrotate-checkconf.service: Deactivated successfully.
Oct 29 09:53:02 nixOS umount[64589]: umount: /mnt/main: target is busy.
Oct 29 09:53:00 nixOS systemd[1]: Stopped Logrotate configuration check.
Oct 29 09:53:00 nixOS systemd[1]: Stopping RealtimeKit Scheduling Policy Service...
Oct 29 09:53:00 nixOS systemd[1]: rtkit-daemon.service: Deactivated successfully.
Oct 29 09:53:00 nixOS systemd[1]: Stopped RealtimeKit Scheduling Policy Service.
Oct 29 09:53:00 nixOS systemd[1]: nh-clean.timer: Deactivated successfully.
Oct 29 09:53:00 nixOS systemd[1]: Stopped nh-clean.timer.
Oct 29 09:53:00 nixOS systemd[1]: Stopping GPU Control Daemon...
Oct 29 09:53:00 nixOS systemd[1]: Stopping Daemon for power management...
Oct 29 09:53:00 nixOS systemd[1]: Stopping Network Manager...
Oct 29 09:53:00 nixOS systemd[1]: Stopping Power Profiles daemon...
Oct 29 09:53:00 nixOS systemd[1]: clamav-fangfrisch.timer: Deactivated successfully.
Oct 29 09:53:00 nixOS systemd[1]: Stopped Timer for ClamAV virus database updater (fangfrisch).
Oct 29 09:53:00 nixOS systemd[1]: kmod-static-nodes.service: Deactivated successfully.
Oct 29 09:53:00 nixOS systemd[1]: Stopped Create List of Static Device Nodes.
Oct 29 09:53:00 nixOS systemd[1]: Stopping Thermal Daemon Service...
Oct 29 09:53:00 nixOS systemd[1]: Unmounting /mnt/main...
Oct 29 09:53:00 nixOS systemd[1]: Stopping Set Up Additional Binary Formats...
Oct 29 09:53:00 nixOS systemd[1]: Stopping ClamAV daemon (clamd)...
Oct 29 09:53:01 nixOS systemd[1]: Stopping Syncthing service...
Oct 29 09:53:01 nixOS systemd[1]: Stopping WPA supplicant...
Oct 29 09:53:01 nixOS systemd[1]: Stopping Stop Intel throttling...
Oct 29 09:53:01 nixOS systemd[1]: systemd-vconsole-setup.service: Deactivated successfully.
Oct 29 09:53:01 nixOS systemd[1]: Stopped Virtual Console Setup.
Oct 29 09:53:01 nixOS systemd[1]: throttled.service: Deactivated successfully.
Oct 29 09:53:01 nixOS systemd[1]: Stopped Stop Intel throttling.
Oct 29 09:53:01 nixOS systemd[1]: throttled.service: Consumed 554ms CPU time, 43.2M memory peak, 24.7M read from disk.
Oct 29 09:53:01 nixOS systemd[1]: systemd-sysctl.service: Deactivated successfully.
Oct 29 09:53:01 nixOS systemd[1]: Stopped Apply Kernel Variables.
Oct 29 09:53:01 nixOS systemd[1]: Stopping Network Time Synchronization...
Oct 29 09:53:01 nixOS systemd[1]: systemd-modules-load.service: Deactivated successfully.
Oct 29 09:53:01 nixOS systemd[1]: Stopped Load Kernel Modules.
Oct 29 09:53:01 nixOS systemd[1]: Stopped target Host and Network Name Lookups.
Oct 29 09:53:01 nixOS systemd[1]: Stopped target User and Group Name Lookups.
Oct 29 09:53:01 nixOS systemd[1]: Stopping Name Service Cache Daemon (nsncd)...
Oct 29 09:53:01 nixOS systemd[1]: network-setup.service: Deactivated successfully.
Oct 29 09:53:01 nixOS systemd[1]: Stopped Networking Setup.
Oct 29 09:53:01 nixOS systemd[1]: Stopping Userspace Out-Of-Memory (OOM) Killer...
Oct 29 09:53:01 nixOS systemd[1]: nscd.service: Deactivated successfully.
Oct 29 09:53:01 nixOS systemd[1]: Stopped Name Service Cache Daemon (nsncd).
Oct 29 09:53:01 nixOS systemd[1]: nscd.service: Consumed 584ms CPU time, 3.4M memory peak, 572K memory swap peak, 168K read from disk, 572K written to disk, 78.9K incoming IP traffic, 33.3K outgoing IP traffic.
Oct 29 09:53:01 nixOS systemd[1]: Stopped target Remote File Systems.
Oct 29 09:53:01 nixOS systemd[1]: resolvconf.service: Deactivated successfully.
Oct 29 09:53:01 nixOS systemd[1]: Stopped resolvconf update.
Oct 29 09:53:01 nixOS systemd[1]: Stopping Disk Manager...
Oct 29 09:53:01 nixOS systemd[1]: systemd-binfmt.service: Deactivated successfully.
Oct 29 09:53:01 nixOS systemd[1]: Stopped Set Up Additional Binary Formats.
Oct 29 09:53:01 nixOS systemd[1]: Stopped target Local File Systems.
Oct 29 09:53:01 nixOS systemd[1]: systemd-oomd.service: Deactivated successfully.
Oct 29 09:53:01 nixOS systemd[1]: Stopped Userspace Out-Of-Memory (OOM) Killer.
Oct 29 09:53:01 nixOS systemd[1]: systemd-oomd.socket: Deactivated successfully.
Oct 29 09:53:01 nixOS systemd[1]: Closed Userspace Out-Of-Memory (OOM) Killer Socket.
Oct 29 09:53:01 nixOS systemd[1]: systemd-timesyncd.service: Deactivated successfully.
Oct 29 09:53:01 nixOS systemd[1]: Stopped Network Time Synchronization.
Oct 29 09:53:01 nixOS systemd[1]: systemd-timesyncd.service: Consumed 224ms CPU time, 5.1M memory peak, 1M memory swap peak, 2.5M read from disk, 1M written to disk, 1.7K incoming IP traffic, 13.3K outgoing IP traffic.
Oct 29 09:53:01 nixOS systemd[1]: mnt-main.mount: Mount process exited, code=exited, status=32/n/a
Oct 29 09:53:01 nixOS systemd[1]: Failed unmounting /mnt/main.
Oct 29 09:53:02 nixOS dbus-broker-launch[835]: Activation request for 'org.freedesktop.nm_dispatcher' failed.
Oct 29 09:53:02 nixOS NetworkManager[955]: <warn>  [1761731582.1065] dispatcher: (12) failed (after 0.024 sec): Could not activate remote peer 'org.freedesktop.nm_dispatcher': activation request failed: unit is invalid
Oct 29 09:53:02 nixOS dbus-broker-launch[835]: Activation request for 'org.freedesktop.nm_dispatcher' failed.
Oct 29 09:53:02 nixOS udisksd[1579]: udisks daemon version 2.10.2 exiting
Oct 29 09:53:02 nixOS systemd[1]: upower.service: Deactivated successfully.
Oct 29 09:53:02 nixOS systemd[1]: Stopped Daemon for power management.
Oct 29 09:53:02 nixOS systemd[1]: upower.service: Consumed 119ms CPU time, 5.6M memory peak, 2.1M read from disk.
Oct 29 09:53:02 nixOS clamd[1223]: Pid file removed.
Oct 29 09:53:02 nixOS clamd[1223]: --- Stopped at Wed Oct 29 09:53:02 2025
Oct 29 09:53:02 nixOS clamd[1223]: Socket file removed.
Oct 29 09:53:02 nixOS systemd[1]: wpa_supplicant.service: Deactivated successfully.
Oct 29 09:53:02 nixOS systemd[1]: Stopped WPA supplicant.
Oct 29 09:53:02 nixOS systemd[1]: wpa_supplicant.service: Consumed 231ms CPU time, 7.7M memory peak, 16K memory swap peak, 7.2M read from disk, 16K written to disk.
Oct 29 09:53:02 nixOS syncthing[1029]: 2025-10-29 09:53:02 INF QUIC listener shutting down (address="[::]:22000" log.pkg=connections)
Oct 29 09:53:02 nixOS sshd[1028]: Received signal 15; terminating.
Oct 29 09:53:02 nixOS syncthing[1029]: 2025-10-29 09:53:01 INF Received signal; exiting (signal=terminated log.pkg=main)
Oct 29 09:53:02 nixOS systemd[1]: lactd.service: Deactivated successfully.
Oct 29 09:53:02 nixOS systemd[1]: Stopped GPU Control Daemon.
Oct 29 09:53:02 nixOS systemd[1]: lactd.service: Consumed 146ms CPU time, 30.6M memory peak, 24.3M read from disk.
Oct 29 09:53:02 nixOS systemd[1]: power-profiles-daemon.service: Deactivated successfully.
Oct 29 09:53:02 nixOS systemd[1]: Stopped Power Profiles daemon.
Oct 29 09:53:02 nixOS syncthing[1029]: 2025-10-29 09:53:02 INF TCP listener shutting down (address="[::]:22000" log.pkg=connections)
Oct 29 09:53:02 nixOS syncthing[1029]: 2025-10-29 09:53:02 INF Relay listener shutting down (id=dynamic+https://relays.syncthing.net/endpoint log.pkg=connections)
Oct 29 09:53:03 nixOS systemd[1]: thermald.service: Deactivated successfully.
Oct 29 09:53:03 nixOS systemd[1]: Stopped Thermal Daemon Service.
Oct 29 09:53:03 nixOS systemd[1]: thermald.service: Consumed 257ms CPU time, 10.1M memory peak, 7.5M read from disk.
Oct 29 09:53:03 nixOS dbus-broker-launch[835]: Activation request for 'org.freedesktop.UPower' failed.
Oct 29 09:53:03 nixOS dbus-broker-launch[835]: Activation request for 'org.freedesktop.UPower' failed.
Oct 29 09:53:03 nixOS dbus-broker-launch[835]: Activation request for 'org.freedesktop.UPower' failed.
Oct 29 09:53:03 nixOS dbus-broker-launch[835]: Activation request for 'org.freedesktop.UPower' failed.
Oct 29 09:53:03 nixOS dbus-broker-launch[835]: Activation request for 'org.freedesktop.UPower' failed.
Oct 29 09:53:03 nixOS dbus-broker-launch[835]: Activation request for 'org.freedesktop.UPower' failed.
Oct 29 09:53:03 nixOS dbus-broker-launch[835]: Activation request for 'org.freedesktop.UPower' failed.
Oct 29 09:53:03 nixOS dbus-broker-launch[835]: Activation request for 'org.freedesktop.UPower' failed.
Oct 29 09:53:03 nixOS dbus-broker-launch[835]: Activation request for 'org.freedesktop.UPower' failed.
Oct 29 09:53:03 nixOS dbus-broker-launch[835]: Activation request for 'org.freedesktop.UPower' failed.
Oct 29 09:53:03 nixOS dbus-broker-launch[835]: Activation request for 'org.freedesktop.UPower' failed.
Oct 29 09:53:03 nixOS dbus-broker-launch[835]: Activation request for 'org.freedesktop.UPower' failed.
Oct 29 09:53:03 nixOS dbus-broker-launch[835]: Activation request for 'org.freedesktop.UPower' failed.
Oct 29 09:53:03 nixOS dbus-broker-launch[835]: Activation request for 'org.freedesktop.UPower' failed.
Oct 29 09:53:03 nixOS dbus-broker-launch[835]: Activation request for 'org.freedesktop.UPower' failed.
Oct 29 09:53:03 nixOS dbus-broker-launch[835]: Activation request for 'org.freedesktop.UPower' failed.
Oct 29 09:53:03 nixOS dbus-broker-launch[835]: Activation request for 'org.freedesktop.UPower' failed.
Oct 29 09:53:03 nixOS dbus-broker-launch[835]: Activation request for 'org.freedesktop.UPower' failed.
Oct 29 09:53:03 nixOS dbus-broker-launch[835]: Activation request for 'org.freedesktop.UPower' failed.
Oct 29 09:53:03 nixOS dbus-broker-launch[835]: Activation request for 'org.freedesktop.UPower' failed.
Oct 29 09:53:03 nixOS dbus-broker-launch[835]: Activation request for 'org.freedesktop.UPower' failed.
Oct 29 09:53:03 nixOS dbus-broker-launch[835]: Activation request for 'org.freedesktop.UPower' failed.
Oct 29 09:53:03 nixOS dbus-broker-launch[835]: Activation request for 'org.freedesktop.UPower' failed.
Oct 29 09:53:03 nixOS dbus-broker-launch[835]: Activation request for 'org.freedesktop.UPower' failed.
Oct 29 09:53:03 nixOS dbus-broker-launch[835]: Activation request for 'org.freedesktop.UPower' failed.
Oct 29 09:53:03 nixOS dbus-broker-launch[835]: Activation request for 'org.freedesktop.UPower' failed.
Oct 29 09:53:03 nixOS dbus-broker-launch[835]: Activation request for 'org.freedesktop.UPower' failed.
Oct 29 09:53:03 nixOS dbus-broker-launch[835]: Activation request for 'org.freedesktop.UPower' failed.
Oct 29 09:53:03 nixOS systemd[1]: sshd.service: Deactivated successfully.
Oct 29 09:53:03 nixOS systemd[1]: Stopped SSH Daemon.
Oct 29 09:53:03 nixOS systemd[1]: sshd.service: Consumed 33ms CPU time, 3.6M memory peak, 1M memory swap peak, 2.9M read from disk, 1M written to disk.
Oct 29 09:53:03 nixOS systemd[1]: clamav-daemon.service: Deactivated successfully.
Oct 29 09:53:03 nixOS systemd[1]: Stopped ClamAV daemon (clamd).
Oct 29 09:53:03 nixOS systemd[1]: clamav-daemon.service: Consumed 31.452s CPU time, 3G memory peak, 1.9M memory swap peak, 754.2M read from disk, 1.9M written to disk.
Oct 29 09:53:04 nixOS systemd[1]: udisks2.service: Deactivated successfully.
Oct 29 09:53:04 nixOS systemd[1]: Stopped Disk Manager.
Oct 29 09:53:04 nixOS systemd[1]: udisks2.service: Consumed 374ms CPU time, 11.1M memory peak, 9M read from disk.
Oct 29 09:53:05 nixOS dbus-broker-launch[835]: Activation request for 'org.freedesktop.nm_dispatcher' failed.
Oct 29 09:53:06 nixOS syncthing[1029]: 2025-10-29 09:53:05 INF Exiting (log.pkg=syncthing)
Oct 29 09:53:06 nixOS systemd[1]: syncthing.service: Deactivated successfully.
Oct 29 09:53:06 nixOS systemd[1]: Stopped Syncthing service.
Oct 29 09:53:06 nixOS systemd[1]: syncthing.service: Consumed 1.912s CPU time, 42.8M memory peak, 1.3M memory swap peak, 30.2M read from disk, 1.3M written to disk, 93.1K incoming IP traffic, 220.5K outgoing IP traffic.
Oct 29 09:53:08 nixOS systemd[1]: NetworkManager.service: Deactivated successfully.
Oct 29 09:53:08 nixOS systemd[1]: Stopped Network Manager.
Oct 29 09:53:08 nixOS systemd[1]: NetworkManager.service: Consumed 939ms CPU time, 22.5M memory peak, 15.3M read from disk, 36K written to disk, 19K incoming IP traffic, 480B outgoing IP traffic.
Oct 29 09:53:08 nixOS systemd[1229]: Got disconnect on system bus.
Oct 29 09:53:08 nixOS wireplumber[1972]: m-dbus-connection: <WpDBusConnection:0x40145150> DBus connection closed: Underlying GIOStream returned 0 bytes on an async read
Oct 29 09:53:08 nixOS hypridle[1764]: [CRITICAL] [core] Disconnected from pollfd id 0
Oct 29 09:53:08 nixOS polkitd[1082]: Lost the name org.freedesktop.PolicyKit1 - exiting
Oct 29 09:53:08 nixOS wireplumber[1972]: m-dbus-connection: <WpDBusConnection:0x40145150> Trying to reconnect after core sync
Oct 29 09:53:08 nixOS dbus-broker[837]: Dispatched 9914 messages @ 4(±6)μs / message.
Oct 29 09:53:08 nixOS kernel: traps: ThreadPoolSingl[1909] trap int3 ip:55b6ca0b6aae sp:7f772c14c620 error:0 in .ferdium-wrapped[6c94aae,55b6c5a21000+8d4f000]
Oct 29 09:53:09 nixOS systemd[1]: Stopping D-Bus System Message Bus...
Oct 29 09:53:09 nixOS systemd[1]: dbus-broker.service: Deactivated successfully.
Oct 29 09:53:09 nixOS systemd[1]: Stopped D-Bus System Message Bus.
Oct 29 09:53:09 nixOS systemd[1]: dbus-broker.service: Consumed 397ms CPU time, 14.1M memory peak, 9.1M read from disk.
Oct 29 09:53:09 nixOS systemd[1]: Starting D-Bus System Message Bus...
Oct 29 09:53:09 nixOS systemd[1229]: xdg-desktop-portal.service: Consumed 1.275s CPU time, 11M memory peak.
Oct 29 09:53:11 nixOS systemd[1229]: obex.service: Main process exited, code=exited, status=1/FAILURE
Oct 29 09:53:11 nixOS systemd[1229]: obex.service: Failed with result 'exit-code'.
Oct 29 09:53:11 nixOS systemd[1]: polkit.service: Deactivated successfully.
Oct 29 09:53:11 nixOS systemd[1]: polkit.service: Consumed 366ms CPU time, 8.7M memory peak, 1.1M memory swap peak, 5.9M read from disk, 1.1M written to disk.
Oct 29 09:53:11 nixOS systemd-coredump[64731]: Process 1743 (.ferdium-wrappe) of user 1000 terminated abnormally with signal 5/TRAP, processing...
Oct 29 09:53:11 nixOS systemd[1]: Created slice Slice /system/systemd-coredump.
Oct 29 09:53:11 nixOS systemd[1]: Started Process Core Dump (PID 64731/UID 0).
Oct 29 09:53:12 nixOS gnome-keyring-daemon[4222]: discover_other_daemon: 0
Oct 29 09:53:14 nixOS sudo[53952]: pam_unix(sudo:session): session closed for user root
Oct 29 09:53:14 nixOS kernel: traps: Bluez D-Bus thr[3283] trap invalid opcode ip:55a47578f3e5 sp:7f70a6050550 error:0 in electron[73453e5,55a470c64000+998b000]
Oct 29 09:53:14 nixOS systemd-coredump[64776]: Process 1751 (electron) of user 1000 terminated abnormally with signal 4/ILL, processing...
Oct 29 09:53:14 nixOS systemd[1]: Started Process Core Dump (PID 64776/UID 0).
Oct 29 09:53:15 nixOS hyprpaper[5278]: [LOG] No pointer capability from the compositor
Oct 29 09:53:15 nixOS hyprpaper[5278]: [LOG] No pointer capability from the compositor
Oct 29 09:53:17 nixOS systemd[1229]: Starting Portal service...
Oct 29 09:53:18 nixOS dbus-broker-launch[64751]: Looking up NSS group entry for 'power'...
Oct 29 09:53:18 nixOS dbus-broker-launch[64751]: NSS returned no entry for 'power'
Oct 29 09:53:18 nixOS dbus-broker-launch[64751]: Invalid group-name in /nix/store/9civ784cd2wvi8mz1qxji8m69mk5913q-thermald-2.5.9/share/dbus-1/system.d/org.freedesktop.thermald.conf +19: group="power"
Oct 29 09:53:18 nixOS systemd[1229]: Starting Portal service (GTK/GNOME implementation)...
Oct 29 09:53:21 nixOS dbus-broker-launch[64751]: Ignoring duplicate name 'org.opensuse.CupsPkHelper.Mechanism' in service file '/nix/store/335593v60x30v4rc4p2753dcxakg65i0-cups-pk-helper-0.2.6/share/dbus-1/system-services/org.opensuse.CupsPkHelper.Mechanism.service'
Oct 29 09:53:21 nixOS dbus-broker-launch[64751]: Ignoring duplicate name 'org.freedesktop.nm_dispatcher' in service file '/nix/store/rgfdj04cvfs8css4mmq6zlsbd0nnxzz0-networkmanager-1.52.1/share/dbus-1/system-services/org.freedesktop.nm_dispatcher.service'
Oct 29 09:53:21 nixOS dbus-broker-launch[64751]: Ignoring duplicate name 'org.freedesktop.nm_priv_helper' in service file '/nix/store/rgfdj04cvfs8css4mmq6zlsbd0nnxzz0-networkmanager-1.52.1/share/dbus-1/system-services/org.freedesktop.nm_priv_helper.service'
Oct 29 09:53:21 nixOS dbus-broker-launch[64751]: Ignoring duplicate name 'fi.w1.wpa_supplicant1' in service file '/nix/store/5kw2686nll8pzwjyj3cxwnhvm62nfmhb-wpa_supplicant-2.11/share/dbus-1/system-services/fi.w1.wpa_supplicant1.service'
Oct 29 09:53:21 nixOS dbus-broker-launch[64751]: Ignoring duplicate name 'org.freedesktop.ModemManager1' in service file '/nix/store/pm5bfbzvvkdafy9s3g4pzqhw6pzr0sfq-modemmanager-1.24.0/share/dbus-1/system-services/org.freedesktop.ModemManager1.service'
Oct 29 09:53:21 nixOS dbus-broker-launch[64751]: Ignoring duplicate name 'org.freedesktop.UPower' in service file '/nix/store/9d1bijprbzzcnw20f6k49mr76rbvc0i3-upower-1.90.6/share/dbus-1/system-services/org.freedesktop.UPower.service'
Oct 29 09:53:21 nixOS dbus-broker-launch[64751]: Ignoring duplicate name 'org.freedesktop.UDisks2' in service file '/nix/store/svigprhx5ywdz15gpmrqinfxgkp2cgcb-udisks-2.10.2/share/dbus-1/system-services/org.freedesktop.UDisks2.service'
Oct 29 09:53:21 nixOS dbus-broker-launch[64751]: Ignoring duplicate name 'net.hadess.PowerProfiles' in service file '/nix/store/bngbwwzp1gb2pzmkj4k3cgjlwh6dqaca-power-profiles-daemon-0.30/share/dbus-1/system-services/net.hadess.PowerProfiles.service'
Oct 29 09:53:21 nixOS dbus-broker-launch[64751]: Ignoring duplicate name 'org.freedesktop.UPower.PowerProfiles' in service file '/nix/store/bngbwwzp1gb2pzmkj4k3cgjlwh6dqaca-power-profiles-daemon-0.30/share/dbus-1/system-services/org.freedesktop.UPower.PowerProfiles.service'
Oct 29 09:53:21 nixOS dbus-broker-launch[64751]: Ignoring duplicate name 'org.bluez.mesh' in service file '/nix/store/b5l183h1mq0fc807p42wrzjk6m0j26ix-bluez-5.83/share/dbus-1/system-services/org.bluez.mesh.service'
Oct 29 09:53:21 nixOS dbus-broker-launch[64751]: Ignoring duplicate name 'org.bluez' in service file '/nix/store/b5l183h1mq0fc807p42wrzjk6m0j26ix-bluez-5.83/share/dbus-1/system-services/org.bluez.service'
Oct 29 09:53:21 nixOS dbus-broker-launch[64751]: Ignoring duplicate name 'org.blueman.Mechanism' in service file '/nix/store/qg0aimd3skqgdb0189ff3zhh9a6a4l7h-blueman-2.4.6/share/dbus-1/system-services/org.blueman.Mechanism.service'
Oct 29 09:53:22 nixOS dbus-broker-launch[64751]: Ignoring duplicate name 'org.freedesktop.RealtimeKit1' in service file '/nix/store/n484lxjvyzxry2fmcn5vynjgprk1v2ha-rtkit-0.13/share/dbus-1/system-services/org.freedesktop.RealtimeKit1.service'
Oct 29 09:53:22 nixOS dbus-broker-launch[64751]: Ignoring duplicate name 'org.freedesktop.PolicyKit1' in service file '/nix/store/jmfhfnkf7s5zqx4vjqnsgw29j25r08hk-polkit-126/share/dbus-1/system-services/org.freedesktop.PolicyKit1.service'
Oct 29 09:53:22 nixOS systemd[1]: Started D-Bus System Message Bus.
Oct 29 09:53:22 nixOS dbus-broker-launch[64751]: Ready
Oct 29 09:53:40 nixOS systemd-logind[866]: Power key pressed short.
Oct 29 09:53:40 nixOS systemd-logind[866]: Powering off...
Oct 29 09:53:40 nixOS systemd-logind[866]: Failed to get load state of poweroff.target: Transport endpoint is not connected
Oct 29 09:53:40 nixOS systemd-logind[866]: Failed to execute poweroff operation: Transport endpoint is not connected
Oct 29 09:53:45 nixOS systemd[1]: Starting RealtimeKit Scheduling Policy Service...
Oct 29 09:53:45 nixOS systemd[1]: Started RealtimeKit Scheduling Policy Service.
Oct 29 09:53:51 nixOS systemd-logind[866]: Power key pressed short.
Oct 29 09:53:51 nixOS systemd-logind[866]: Powering off...
Oct 29 09:53:51 nixOS systemd-logind[866]: Failed to get load state of poweroff.target: Transport endpoint is not connected
Oct 29 09:53:51 nixOS systemd-logind[866]: Failed to execute poweroff operation: Transport endpoint is not connected

You also have to do:

    programs.niri.enable = true;

in your configuration.nix, doing it only in your home.nix (HM) just enables it settings from flake.

For example my desktop.nix is:

{ config, pkgs, inputs, ...}:
{
    # Tiling VM pkgs
    environment.systemPackages = with pkgs; [
      niri
	    xwayland-satellite
      mako
      wofi
      wmenu
      networkmanagerapplet
      swaybg
      swaylock
      wl-clipboard
      waybar
      adwaita-icon-theme
    ];
    
    programs.niri.enable = true;
}

And thats what enables niri for xserver, and my home/niri/default.nix is handling Niris settings:

{config, pkgs, inputs, ...}:

{

  # Niri flake hm
  imports = [
    inputs.niri.homeModules.niri
  ];
  # Gnome Polkit
  services.polkit-gnome.enable = true;

  # Niri Config
  programs.niri = { 
    enable = true;
	  package = pkgs.niri;
    settings.layout = {
      focus-ring = {
        active.color = "#40454d";
        };
    };

1 Like

Ah, sorry, I meant, after you try to do a nixos-rebuild switch run journalctl -e.

You can also start journalctl -f before you do nixos-rebuild switch in a different terminal to narrow down the logging a bit.

The above was from after I did a rebuild - or well, after I rebooted since the rebuild puts my system in a state where I can’t do anything. I ran a specific command (can’t remember it now) to get the logs from the previous boot up, and attached those there.

Ok, I’ve fixed it all - everything works as it should. Will post a new message and push the updated code when I’m finished with it, but for now no worries :).

Yeah so I fixed it - first I forgot to enable the dbus service (whoops, I assume that’s what caused everything to break on switch), although it could also be due to the fact that I was trying to rename my user in the new configuration, which with hindsight would easily break stuff as well. Also I’ve now setup UWSM, which meant Niri works as it should now.

After that worked when I rebooted, the new configuration was still gone though. Turns out that since I was switching from grub to systemd, I had to specify --install-bootloader even though there was no warning about having to do this - at least I assume that was the reason, as after running with the flag it worked. Whoops, and also later I switched back to grub because I like it more (just works, kinda styles itself to my stylix configuration, and the organisation of specialisations etc., is better for me)!

Either way thanks for the help all!

1 Like

Yeah, fair enough; FWIW, NixOS can’t know anything about options you’re removing. It’d probably be possible to write a heuristic, but that would very likely get in the way of dual boot setups.

1 Like

Yep, it’s not really nixOS’s fault - to be honest, it’s mentioned in the docs a few times, which is probably enough to tell the user they need to do it.