Computer does not shut down or restart after upgrading from nixos-25.05

Recently I tried upgrading to nixos-unstable. Once it was done upgrading and I restarted, it worked fine until I tried to reboot/ shut down. Whenever i tried to, it would do the normal things up to when it stopped displaying to my monitor, and then it would do a cmos beep every 15 or so seconds and I would have to turn it off via the power button. From what i read( bear in mind I am no expert) it appeared to be a Dram refresh failure. After doing this a few times, i rolled back to 25.05, and it shut off properly. When I proceeded to upgrade to 25.11 to see if that worked, it did the same thing of restarting fine when I did the first reboot, and every proceeding reboot or shutdown it would do cmos beeps after it stopped displaying.

Any clue on how to fix this? I also dual boot windows and it works fine shutting down/ rebooting from there.

You can get the logs from a previous boot with journalctl --boot -1.

Try starting your system with 25.11, attempt shutting it down, wait a while (at least 3 minutes so systemd services have time to time out), then boot an older generation and get the logs so you can share them.

Here is the bottom chunk of the log:

  Jan 19 10:31:18 nixos make-initrd-ng[2526]: /shutdown -> /nix/store/yxk9smkrispxlz2ka3gxigvmzhf0fn65-systemd-258.2/lib/systemd/systemd-shutdown
Jan 19 10:31:18 nixos make-initrd-ng[2526]: Warning: Couldn't satisfy dependency libc.so.6 for "/nix/store/wqfs0wh0wp6vdcbbck3wzk5v15qy17m7-glibc-2.40-66/lib/libdl.so.2"
Jan 19 10:31:18 nixos systemd[1]: save-hwclock.service: Deactivated successfully.
Jan 19 10:31:18 nixos systemd[1]: Finished Save Hardware Clock.
Jan 19 10:31:18 nixos systemd[2158]: xdg-desktop-portal-hyprland.service: Scheduled restart job, restart counter is at 1.
Jan 19 10:31:18 nixos systemd[2158]: Starting Portal service (Hyprland implementation)...
Jan 19 10:31:18 nixos make-initrd-ng[2526]: Warning: Couldn't satisfy dependency ld-linux-x86-64.so.2 for "/nix/store/wqfs0wh0wp6vdcbbck3wzk5v15qy17m7-glibc-2.40-66/lib/libc.so.6"
Jan 19 10:31:18 nixos systemd[2158]: Started Portal service (Hyprland implementation).
Jan 19 10:31:18 nixos xdg-desktop-portal-hyprland[2530]: [LOG] Initializing xdph...
Jan 19 10:31:18 nixos xdg-desktop-portal-hyprland[2530]: [CRITICAL] Couldn't connect to a wayland compositor
Jan 19 10:31:18 nixos systemd[2158]: xdg-desktop-portal-hyprland.service: Main process exited, code=exited, status=1/FAILURE
Jan 19 10:31:18 nixos systemd[2158]: xdg-desktop-portal-hyprland.service: Failed with result 'exit-code'.
Jan 19 10:31:18 nixos systemd[2158]: xdg-desktop-portal-hyprland.service: Scheduled restart job, restart counter is at 2.
Jan 19 10:31:18 nixos systemd[2158]: Starting Portal service (Hyprland implementation)...
Jan 19 10:31:18 nixos xdg-desktop-portal-hyprland[2532]: [LOG] Initializing xdph...
Jan 19 10:31:18 nixos xdg-desktop-portal-hyprland[2532]: [CRITICAL] Couldn't connect to a wayland compositor
Jan 19 10:31:18 nixos systemd[2158]: Started Portal service (Hyprland implementation).
Jan 19 10:31:18 nixos systemd[2158]: xdg-desktop-portal-hyprland.service: Main process exited, code=exited, status=1/FAILURE
Jan 19 10:31:18 nixos systemd[2158]: xdg-desktop-portal-hyprland.service: Failed with result 'exit-code'.
Jan 19 10:31:19 nixos systemd[2158]: xdg-desktop-portal-hyprland.service: Scheduled restart job, restart counter is at 3.
Jan 19 10:31:19 nixos systemd[2158]: Starting Portal service (Hyprland implementation)...
Jan 19 10:31:19 nixos make-initrd-ng[2526]: Warning: Couldn't satisfy dependency libc.so.6 for "/nix/store/wqfs0wh0wp6vdcbbck3wzk5v15qy17m7-glibc-2.40-66/lib/libm.so.6"
Jan 19 10:31:19 nixos make-initrd-ng[2526]: Warning: Couldn't satisfy dependency ld-linux-x86-64.so.2 for "/nix/store/wqfs0wh0wp6vdcbbck3wzk5v15qy17m7-glibc-2.40-66/lib/libm.so.6"
Jan 19 10:31:19 nixos xdg-desktop-portal-hyprland[2534]: [LOG] Initializing xdph...
Jan 19 10:31:19 nixos xdg-desktop-portal-hyprland[2534]: [CRITICAL] Couldn't connect to a wayland compositor
Jan 19 10:31:19 nixos systemd[2158]: Started Portal service (Hyprland implementation).
Jan 19 10:31:19 nixos systemd[2158]: xdg-desktop-portal-hyprland.service: Main process exited, code=exited, status=1/FAILURE
Jan 19 10:31:19 nixos systemd[2158]: xdg-desktop-portal-hyprland.service: Failed with result 'exit-code'.
Jan 19 10:31:19 nixos make-initrd-ng[2526]: Warning: Couldn't satisfy dependency libc.so.6 for "/nix/store/wqfs0wh0wp6vdcbbck3wzk5v15qy17m7-glibc-2.40-66/lib/libpthread.so.0"
Jan 19 10:31:19 nixos systemd[1]: generate-shutdown-ramfs.service: Deactivated successfully.
Jan 19 10:31:19 nixos systemd[1]: Finished Generate shutdown ramfs.
Jan 19 10:31:19 nixos systemd[1]: generate-shutdown-ramfs.service: Consumed 92ms CPU time, 30M memory peak, 4.3M read from disk.
Jan 19 10:31:19 nixos lightdm[1336]: pam_unix(lightdm:session): session closed for user roland
Jan 19 10:31:19 nixos systemd[1]: display-manager.service: Deactivated successfully.
Jan 19 10:31:19 nixos systemd[1]: Stopped Display Manager.
Jan 19 10:31:19 nixos systemd[1]: display-manager.service: Consumed 2.039s CPU time, 116.5M memory peak, 76M read from disk, 132K written to disk.
Jan 19 10:31:19 nixos systemd[1]: Stopping ACPI Daemon...
Jan 19 10:31:19 nixos systemd[1]: session-2.scope: Deactivated successfully.
Jan 19 10:31:19 nixos systemd[1]: Stopped Session 2 of User roland.
Jan 19 10:31:19 nixos systemd[1]: session-2.scope: Consumed 7.523s CPU time, 505.8M memory peak, 238.4M read from disk, 16K written to disk.
Jan 19 10:31:19 nixos systemd[1]: Stopping Permit User Sessions...
Jan 19 10:31:19 nixos systemd[1]: Stopping User Manager for UID 1000...
Jan 19 10:31:19 nixos systemd[2158]: Activating special unit Exit the Session...
Jan 19 10:31:19 nixos systemd[2158]: xdg-desktop-portal-hyprland.service: Stop job pending for unit, skipping automatic restart.
Jan 19 10:31:19 nixos systemd[2158]: Stopped target Main User Target.
Jan 19 10:31:19 nixos systemd[2158]: Stopped target Fake graphical-session target for non-systemd-aware sessions.
Jan 19 10:31:19 nixos systemd[2158]: Stopped target Sound Card.
Jan 19 10:31:19 nixos systemd[2158]: Stopped Portal service (Hyprland implementation).
Jan 19 10:31:19 nixos systemd[2158]: Stopped target Current graphical user session.
Jan 19 10:31:19 nixos systemd[2158]: Stopping Portal service...
Jan 19 10:31:19 nixos systemd[2158]: Stopping flatpak document portal service...
Jan 19 10:31:19 nixos systemd[2158]: Stopping sandboxed app permission store...
Jan 19 10:31:19 nixos systemd-logind[930]: Removed session 2.
Jan 19 10:31:19 nixos systemd[2158]: Stopped sandboxed app permission store.
Jan 19 10:31:19 nixos systemd[2158]: Stopped Portal service.
Jan 19 10:31:19 nixos systemd[1]: systemd-user-sessions.service: Deactivated successfully.
Jan 19 10:31:19 nixos systemd[1]: Stopped Permit User Sessions.
Jan 19 10:31:19 nixos systemd[1]: Stopped target Remote File Systems.
Jan 19 10:31:19 nixos systemd[1]: Requested transaction contradicts existing jobs: Transaction for systemd-rfkill.socket/start is destructive (shutdown.target has 'start' job queued, but 'stop' is included in transaction).
Jan 19 10:31:19 nixos systemd[1]: sys-devices-virtual-misc-rfkill.device: Failed to enqueue SYSTEMD_WANTS job, ignoring: Transaction for systemd-rfkill.socket/start is destructive (shutdown.target has 'start' job queued, but 'stop' is included in transaction).
Jan 19 10:31:19 nixos systemd[2158]: Requested transaction contradicts existing jobs: Transaction for sound.target/start is destructive (exit.target has 'start' job queued, but 'stop' is included in transaction).
Jan 19 10:31:19 nixos systemd[2158]: sys-devices-pci0000:00-0000:00:01.1-0000:01:00.1-sound-card0-controlC0.device: Failed to enqueue SYSTEMD_USER_WANTS job, ignoring: Transaction for sound.target/start is destructive (exit.target has 'start' job queued, but 'stop' is included in transaction).
Jan 19 10:31:19 nixos systemd[1]: run-user-1000-doc.mount: Deactivated successfully.
Jan 19 10:31:19 nixos systemd[1]: Unmounted /run/user/1000/doc.
Jan 19 10:31:19 nixos systemd[1]: Requested transaction contradicts existing jobs: Transaction for sound.target/start is destructive (systemd-reboot.service has 'start' job queued, but 'stop' is included in transaction).
Jan 19 10:31:19 nixos systemd[1]: sys-devices-pci0000:00-0000:00:01.1-0000:01:00.1-sound-card0-controlC0.device: Failed to enqueue SYSTEMD_WANTS job, ignoring: Transaction for sound.target/start is destructive (systemd-reboot.service has 'start' job queued, but 'stop' is included in transaction).
Jan 19 10:31:19 nixos systemd[2158]: Requested transaction contradicts existing jobs: Transaction for sound.target/start is destructive (shutdown.target has 'start' job queued, but 'stop' is included in transaction).
Jan 19 10:31:19 nixos systemd[2158]: sys-devices-pci0000:00-0000:00:08.1-0000:07:00.6-sound-card1-controlC1.device: Failed to enqueue SYSTEMD_USER_WANTS job, ignoring: Transaction for sound.target/start is destructive (shutdown.target has 'start' job queued, but 'stop' is included in transaction).
Jan 19 10:31:19 nixos systemd[1]: Requested transaction contradicts existing jobs: Transaction for sound.target/start is destructive (reboot.target has 'start' job queued, but 'stop' is included in transaction).
Jan 19 10:31:19 nixos systemd[1]: sys-devices-pci0000:00-0000:00:08.1-0000:07:00.6-sound-card1-controlC1.device: Failed to enqueue SYSTEMD_WANTS job, ignoring: Transaction for sound.target/start is destructive (reboot.target has 'start' job queued, but 'stop' is included in transaction).
Jan 19 10:31:19 nixos systemd[2158]: Stopped flatpak document portal service.
Jan 19 10:31:19 nixos systemd[2158]: Stopping D-Bus User Message Bus...
Jan 19 10:31:19 nixos systemd[2158]: Stopped D-Bus User Message Bus.
Jan 19 10:31:19 nixos systemd[2158]: Removed slice User Core Session Slice.
Jan 19 10:31:19 nixos systemd[2158]: Stopped target Basic System.
Jan 19 10:31:19 nixos systemd[2158]: Stopped target Paths.
Jan 19 10:31:19 nixos systemd[2158]: Stopped target Sockets.
Jan 19 10:31:19 nixos systemd[2158]: Stopped target Timers.
Jan 19 10:31:19 nixos systemd[2158]: Stopped Daily Cleanup of User's Temporary Directories.
Jan 19 10:31:19 nixos systemd[2158]: Closed D-Bus User Message Bus Socket.
Jan 19 10:31:19 nixos systemd[2158]: Closed Sound System.
Jan 19 10:31:19 nixos systemd[2158]: Closed Speech Dispatcher Socket.
Jan 19 10:31:19 nixos systemd[2158]: Stopped Create User Files and Directories.
Jan 19 10:31:19 nixos systemd[2158]: Removed slice User Application Slice.
Jan 19 10:31:19 nixos systemd[2158]: Reached target Shutdown.
Jan 19 10:31:19 nixos systemd[2158]: Finished Exit the Session.
Jan 19 10:31:19 nixos systemd[2158]: Reached target Exit the Session.
Jan 19 10:31:19 nixos (sd-pam)[2160]: pam_unix(systemd-user:session): session closed for user roland
Jan 19 10:31:19 nixos systemd-logind[930]: Removed session 3.
Jan 19 10:31:19 nixos systemd[1]: user@1000.service: Deactivated successfully.
Jan 19 10:31:19 nixos systemd[1]: Stopped User Manager for UID 1000.
Jan 19 10:31:19 nixos systemd[1]: user@1000.service: Consumed 1.292s CPU time, 80.6M memory peak, 51.1M read from disk, 16K written to disk.
Jan 19 10:31:19 nixos systemd[1]: Stopping Userspace Out-Of-Memory (OOM) Killer...
Jan 19 10:31:19 nixos systemd[1]: Stopping User Runtime Directory /run/user/1000...
Jan 19 10:31:19 nixos systemd[1]: systemd-oomd.service: Deactivated successfully.
Jan 19 10:31:19 nixos systemd[1]: Stopped Userspace Out-Of-Memory (OOM) Killer.
Jan 19 10:31:19 nixos systemd[1]: run-user-1000.mount: Deactivated successfully.
Jan 19 10:31:19 nixos systemd[1]: Unmounted /run/user/1000.
Jan 19 10:31:19 nixos systemd[1]: user-runtime-dir@1000.service: Deactivated successfully.
Jan 19 10:31:19 nixos systemd[1]: Stopped User Runtime Directory /run/user/1000.
Jan 19 10:31:19 nixos systemd[1]: Removed slice Slice /user/1000.
Jan 19 10:31:19 nixos systemd[1]: user-1000.slice: Consumed 8.841s CPU time, 512.2M memory peak, 289.6M read from disk, 32K written to disk.
Jan 19 10:31:19 nixos systemd[1]: Stopping User Login Management...
Jan 19 10:31:19 nixos systemd[1]: systemd-logind.service: Deactivated successfully.
Jan 19 10:31:19 nixos systemd[1]: Stopped User Login Management.
Jan 19 10:31:19 nixos systemd[1]: Stopped target User and Group Name Lookups.
Jan 19 10:31:19 nixos acpid[718]: exiting
Jan 19 10:31:19 nixos systemd[1]: acpid.service: Deactivated successfully.
Jan 19 10:31:19 nixos systemd[1]: Stopped ACPI Daemon.
Jan 19 10:31:20 nixos 3772c971d212[1122]: ❯ Waiting for Windows to shutdown... (1/110)
Jan 19 10:31:22 nixos 3772c971d212[1122]: ❯ Waiting for Windows to shutdown... (2/110)
Jan 19 10:31:24 nixos 3772c971d212[1122]: ❯ Waiting for Windows to shutdown... (3/110)
Jan 19 10:31:26 nixos 3772c971d212[1122]: ❯ Waiting for Windows to shutdown... (4/110)
Jan 19 10:31:28 nixos 3772c971d212[1122]: ❯ Waiting for Windows to shutdown... (5/110)
Jan 19 10:31:30 nixos 3772c971d212[1122]: ❯ Waiting for Windows to shutdown... (6/110)
Jan 19 10:31:32 nixos 3772c971d212[1122]: ❯ Waiting for Windows to shutdown... (7/110)
Jan 19 10:31:34 nixos 3772c971d212[1122]: ❯ Waiting for Windows to shutdown... (8/110)
Jan 19 10:31:36 nixos 3772c971d212[1122]: ❯ Waiting for Windows to shutdown... (9/110)
Jan 19 10:31:38 nixos 3772c971d212[1122]: ❯ Waiting for Windows to shutdown... (10/110)
Jan 19 10:31:40 nixos 3772c971d212[1122]: ❯ Waiting for Windows to shutdown... (11/110)
Jan 19 10:31:42 nixos 3772c971d212[1122]: ❯ Waiting for Windows to shutdown... (12/110)
Jan 19 10:31:44 nixos 3772c971d212[1122]: ❯ Waiting for Windows to shutdown... (13/110)
Jan 19 10:31:46 nixos 3772c971d212[1122]: ❯ Waiting for Windows to shutdown... (14/110)
Jan 19 10:31:48 nixos 3772c971d212[1122]: ❯ Waiting for Windows to shutdown... (15/110)
Jan 19 10:31:50 nixos 3772c971d212[1122]: ❯ Waiting for Windows to shutdown... (16/110)
Jan 19 10:31:52 nixos 3772c971d212[1122]: ❯ Waiting for Windows to shutdown... (17/110)
Jan 19 10:31:54 nixos 3772c971d212[1122]: ❯ Waiting for Windows to shutdown... (18/110)
Jan 19 10:31:56 nixos 3772c971d212[1122]: ❯ Waiting for Windows to shutdown... (19/110)
Jan 19 10:31:58 nixos 3772c971d212[1122]: ❯ Waiting for Windows to shutdown... (20/110)
Jan 19 10:32:00 nixos 3772c971d212[1122]: ❯ Waiting for Windows to shutdown... (21/110)
Jan 19 10:32:02 nixos 3772c971d212[1122]: ❯ Waiting for Windows to shutdown... (22/110)
Jan 19 10:32:04 nixos 3772c971d212[1122]: ❯ Waiting for Windows to shutdown... (23/110)
Jan 19 10:32:06 nixos 3772c971d212[1122]: ❯ Waiting for Windows to shutdown... (24/110)
Jan 19 10:32:08 nixos 3772c971d212[1122]: ❯ Waiting for Windows to shutdown... (25/110)
Jan 19 10:32:10 nixos 3772c971d212[1122]: ❯ Waiting for Windows to shutdown... (26/110)
Jan 19 10:32:12 nixos 3772c971d212[1122]: ❯ Waiting for Windows to shutdown... (27/110)
Jan 19 10:32:14 nixos 3772c971d212[1122]: ❯ Waiting for Windows to shutdown... (28/110)
Jan 19 10:32:16 nixos 3772c971d212[1122]: ❯ Waiting for Windows to shutdown... (29/110)
Jan 19 10:32:18 nixos 3772c971d212[1122]: ❯ Waiting for Windows to shutdown... (30/110)
Jan 19 10:32:20 nixos 3772c971d212[1122]: ❯ Waiting for Windows to shutdown... (31/110)
Jan 19 10:32:22 nixos 3772c971d212[1122]: ❯ Waiting for Windows to shutdown... (32/110)
Jan 19 10:32:24 nixos 3772c971d212[1122]: ❯ Waiting for Windows to shutdown... (33/110)
Jan 19 10:32:26 nixos 3772c971d212[1122]: ❯ Waiting for Windows to shutdown... (34/110)
Jan 19 10:32:28 nixos 3772c971d212[1122]: ❯ Waiting for Windows to shutdown... (35/110)
Jan 19 10:32:30 nixos 3772c971d212[1122]: ❯ Waiting for Windows to shutdown... (36/110)
Jan 19 10:32:32 nixos 3772c971d212[1122]: ❯ Waiting for Windows to shutdown... (37/110)
Jan 19 10:32:34 nixos 3772c971d212[1122]: ❯ Waiting for Windows to shutdown... (38/110)
Jan 19 10:32:36 nixos 3772c971d212[1122]: ❯ Waiting for Windows to shutdown... (39/110)
Jan 19 10:32:38 nixos 3772c971d212[1122]: ❯ Waiting for Windows to shutdown... (40/110)
Jan 19 10:32:40 nixos 3772c971d212[1122]: ❯ Waiting for Windows to shutdown... (41/110)
Jan 19 10:32:42 nixos 3772c971d212[1122]: ❯ Waiting for Windows to shutdown... (42/110)
Jan 19 10:32:44 nixos 3772c971d212[1122]: ❯ Waiting for Windows to shutdown... (43/110)
Jan 19 10:32:46 nixos 3772c971d212[1122]: ❯ Waiting for Windows to shutdown... (44/110)
Jan 19 10:32:47 nixos systemd[1]: docker.service: State 'stop-sigterm' timed out. Killing.
Jan 19 10:32:47 nixos systemd[1]: docker.service: Killing process 1122 (dockerd) with signal SIGKILL.
Jan 19 10:32:47 nixos systemd[1]: docker.service: Main process exited, code=killed, status=9/KILL
Jan 19 10:32:47 nixos systemd[1]: docker.service: Failed with result 'timeout'.
Jan 19 10:32:47 nixos systemd[1]: docker.service: Unit process 1601 (containerd-shim) remains running after unit stopped.
Jan 19 10:32:47 nixos systemd[1]: Stopped Docker Application Container Engine.
Jan 19 10:32:47 nixos systemd[1]: docker.service: Consumed 1.747s CPU time, 199.8M memory peak, 143.6M read from disk, 716K written to disk.
Jan 19 10:32:47 nixos systemd[1]: Stopped target Network is Online.
Jan 19 10:32:47 nixos systemd[1]: Stopped target Network.
Jan 19 10:32:47 nixos systemd[1]: Stopped target Host and Network Name Lookups.
Jan 19 10:32:47 nixos systemd[1]: NetworkManager-wait-online.service: Deactivated successfully.
Jan 19 10:32:47 nixos systemd[1]: Stopped Network Manager Wait Online.
Jan 19 10:32:47 nixos systemd[1]: Stopping Network Manager...
Jan 19 10:32:47 nixos systemd[1]: network-setup.service: Deactivated successfully.
Jan 19 10:32:47 nixos systemd[1]: Stopped Networking Setup.
Jan 19 10:32:47 nixos systemd[1]: Stopping Name Service Cache Daemon (nsncd)...
Jan 19 10:32:47 nixos dbus-daemon[720]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.9' (uid=0 pid=983 comm="/nix/store/ii1z78w0p686pcilchd8xc06ja3hnhjv-networ")
Jan 19 10:32:47 nixos systemd[1]: nscd.service: Deactivated successfully.
Jan 19 10:32:47 nixos systemd[1]: Stopped Name Service Cache Daemon (nsncd).
Jan 19 10:32:47 nixos dbus-daemon[720]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.nm-dispatcher.service': Refusing activation, D-Bus is shutting down.
Jan 19 10:32:47 nixos systemd[1]: NetworkManager.service: Deactivated successfully.
Jan 19 10:32:47 nixos systemd[1]: Stopped Network Manager.
Jan 19 10:32:47 nixos systemd[1]: NetworkManager.service: Consumed 228ms CPU time, 21.4M memory peak, 14.1M read from disk, 28K written to disk, 336B outgoing IP traffic.
Jan 19 10:32:47 nixos systemd[1]: Stopped target Preparation for Network.
Jan 19 10:32:47 nixos systemd[1]: Stopping D-Bus System Message Bus...
Jan 19 10:32:47 nixos systemd[1]: Stopping Firewall...
Jan 19 10:32:47 nixos systemd[1]: resolvconf.service: Deactivated successfully.
Jan 19 10:32:47 nixos systemd[1]: Stopped resolvconf update.
Jan 19 10:32:47 nixos systemd[1]: dbus.service: Deactivated successfully.
Jan 19 10:32:47 nixos systemd[1]: Stopped D-Bus System Message Bus.
Jan 19 10:32:47 nixos systemd[1]: dbus.service: Consumed 434ms CPU time, 8.4M memory peak, 5.4M read from disk.
Jan 19 10:32:47 nixos systemd[1]: Stopped target Basic System.
Jan 19 10:32:47 nixos systemd[1]: Stopped target Path Units.
Jan 19 10:32:47 nixos systemd[1]: Stopped target Slice Units.
Jan 19 10:32:47 nixos systemd[1]: Removed slice User and Session Slice.
Jan 19 10:32:47 nixos systemd[1]: user.slice: Consumed 10.432s CPU time, 557.9M memory peak, 333.5M read from disk, 60K written to disk.
Jan 19 10:32:47 nixos systemd[1]: Stopped target Socket Units.
Jan 19 10:32:47 nixos systemd[1]: cups.socket: Deactivated successfully.
Jan 19 10:32:47 nixos systemd[1]: Closed CUPS Scheduler.
Jan 19 10:32:47 nixos systemd[1]: dbus.socket: Deactivated successfully.
Jan 19 10:32:47 nixos systemd[1]: Closed D-Bus System Message Bus Socket.
Jan 19 10:32:47 nixos systemd[1]: docker.socket: Deactivated successfully.
Jan 19 10:32:47 nixos systemd[1]: Closed Docker Socket for the API.
Jan 19 10:32:47 nixos systemd[1]: nix-daemon.socket: Deactivated successfully.
Jan 19 10:32:47 nixos systemd[1]: Closed Nix Daemon Socket.
Jan 19 10:32:47 nixos systemd[1]: sshd-unix-local.socket: Deactivated successfully.
Jan 19 10:32:47 nixos systemd[1]: Closed OpenSSH Server Socket (systemd-ssh-generator, AF_UNIX Local).
Jan 19 10:32:47 nixos systemd[1]: systemd-hostnamed.socket: Deactivated successfully.
Jan 19 10:32:47 nixos systemd[1]: Closed Hostname Service Socket.
Jan 19 10:32:47 nixos systemd[1]: Stopped target System Initialization.
Jan 19 10:32:47 nixos systemd[1]: Stopped target Local Encrypted Volumes.
Jan 19 10:32:47 nixos systemd[1]: systemd-ask-password-console.path: Deactivated successfully.
Jan 19 10:32:47 nixos systemd[1]: Stopped Dispatch Password Requests to Console Directory Watch.
Jan 19 10:32:47 nixos systemd[1]: systemd-ask-password-wall.path: Deactivated successfully.
Jan 19 10:32:47 nixos systemd[1]: Stopped Forward Password Requests to Wall Directory Watch.
Jan 19 10:32:47 nixos systemd[1]: systemd-oomd.socket: Deactivated successfully.
Jan 19 10:32:47 nixos systemd[1]: Closed Userspace Out-Of-Memory (OOM) Killer Socket.
Jan 19 10:32:47 nixos systemd[1]: systemd-sysctl.service: Deactivated successfully.
Jan 19 10:32:47 nixos systemd[1]: Stopped Apply Kernel Variables.
Jan 19 10:32:47 nixos systemd[1]: systemd-coredump.socket: Deactivated successfully.
Jan 19 10:32:47 nixos systemd[1]: Closed Process Core Dump Socket.
Jan 19 10:32:47 nixos systemd[1]: Stopping Network Time Synchronization...
Jan 19 10:32:47 nixos systemd[1]: Stopping Record System Boot/Shutdown in UTMP...
Jan 19 10:32:47 nixos systemd[1]: systemd-timesyncd.service: Deactivated successfully.
Jan 19 10:32:47 nixos systemd[1]: Stopped Network Time Synchronization.
Jan 19 10:32:47 nixos systemd[1]: systemd-timesyncd.service: Consumed 54ms CPU time, 4.5M memory peak, 2.1M read from disk, 1.1K incoming IP traffic, 4K outgoing IP traffic.
Jan 19 10:32:48 nixos systemd[1]: systemd-update-utmp.service: Deactivated successfully.
Jan 19 10:32:48 nixos systemd[1]: Stopped Record System Boot/Shutdown in UTMP.
Jan 19 10:32:48 nixos systemd[1]: systemd-tmpfiles-setup.service: Deactivated successfully.
Jan 19 10:32:48 nixos systemd[1]: Stopped Create System Files and Directories.
Jan 19 10:32:48 nixos systemd[1]: systemd-tmpfiles-setup.service: Consumed 30ms CPU time, 2.8M memory peak, 1.1M read from disk.
Jan 19 10:32:48 nixos systemd[1]: Stopped target Local File Systems.
Jan 19 10:32:48 nixos systemd[1]: Unmounting /boot/efi...
Jan 19 10:32:48 nixos systemd[1]: Unmounting /run/docker/netns/f92d2f28f856...
Jan 19 10:32:48 nixos systemd[1]: Unmounting /run/keys...
Jan 19 10:32:48 nixos systemd[1]: Unmounting /run/wrappers...
Jan 19 10:32:48 nixos systemd[1]: Unmounting /var/lib/docker/overlay2/343b4aef4906ec06f54ac5af2b4ab04b49d3bfdf17c5a3d042c5c61943534987/merged...
Jan 19 10:32:48 nixos systemd[1]: boot-efi.mount: Deactivated successfully.
Jan 19 10:32:48 nixos systemd[1]: Unmounted /boot/efi.
Jan 19 10:32:48 nixos systemd[1]: run-docker-netns-f92d2f28f856.mount: Deactivated successfully.
Jan 19 10:32:48 nixos systemd[1]: Unmounted /run/docker/netns/f92d2f28f856.
Jan 19 10:32:48 nixos systemd[1]: run-keys.mount: Deactivated successfully.
Jan 19 10:32:48 nixos systemd[1]: Unmounted /run/keys.
Jan 19 10:32:48 nixos systemd[1]: run-wrappers.mount: Deactivated successfully.
Jan 19 10:32:48 nixos systemd[1]: Unmounted /run/wrappers.
Jan 19 10:32:48 nixos systemd[1]: var-lib-docker-overlay2-343b4aef4906ec06f54ac5af2b4ab04b49d3bfdf17c5a3d042c5c61943534987-merged.mount: Deactivated successfully.
Jan 19 10:32:48 nixos systemd[1]: Unmounted /var/lib/docker/overlay2/343b4aef4906ec06f54ac5af2b4ab04b49d3bfdf17c5a3d042c5c61943534987/merged.
Jan 19 10:32:48 nixos systemd[1]: Stopped target Swaps.
Jan 19 10:32:48 nixos systemd[1]: Deactivating swap /dev/disk/by-designator/swap...
Jan 19 10:32:48 nixos systemd[1]: systemd-fsck@dev-disk-by\x2duuid-5FBD\x2dDD24.service: Deactivated successfully.
Jan 19 10:32:48 nixos systemd[1]: Stopped File System Check on /dev/disk/by-uuid/5FBD-DD24.
Jan 19 10:32:48 nixos systemd[1]: systemd-fsck@dev-disk-by\x2duuid-5FBD\x2dDD24.service: Consumed 33ms CPU time, 6M memory peak, 2.1M read from disk.
Jan 19 10:32:48 nixos systemd[1]: Removed slice Slice /system/systemd-fsck.
Jan 19 10:32:48 nixos systemd[1]: system-systemd\x2dfsck.slice: Consumed 33ms CPU time, 6M memory peak, 2.1M read from disk.
Jan 19 10:32:48 nixos systemd[1]: Stopped target Preparation for Local File Systems.
Jan 19 10:32:48 nixos systemd[1]: systemd-remount-fs.service: Deactivated successfully.
Jan 19 10:32:48 nixos systemd[1]: Stopped Remount Root and Kernel File Systems.
Jan 19 10:32:48 nixos systemd[1]: systemd-tmpfiles-setup-dev.service: Deactivated successfully.
Jan 19 10:32:48 nixos systemd[1]: Stopped Create Static Device Nodes in /dev.
Jan 19 10:32:48 nixos systemd[1]: systemd-tmpfiles-setup-dev-early.service: Deactivated successfully.
Jan 19 10:32:48 nixos systemd[1]: Stopped Create Static Device Nodes in /dev gracefully.
Jan 19 10:32:48 nixos systemd[1]: dev-disk-by\x2dpartuuid-7a2cc1ae\x2d1ac5\x2d4ab2\x2db0a0\x2d4cce2fcb6192.swap: Deactivated successfully.
Jan 19 10:32:48 nixos systemd[1]: Deactivated swap /dev/disk/by-partuuid/7a2cc1ae-1ac5-4ab2-b0a0-4cce2fcb6192.
Jan 19 10:32:48 nixos systemd[1]: dev-disk-by\x2dpath-pci\x2d0000:02:00.1\x2data\x2d1.0\x2dpart-by\x2dlabel-swap.swap: Deactivated successfully.
Jan 19 10:32:48 nixos systemd[1]: Deactivated swap /dev/disk/by-path/pci-0000:02:00.1-ata-1.0-part/by-label/swap.
Jan 19 10:32:48 nixos systemd[1]: dev-disk-by\x2dlabel-swap.swap: Deactivated successfully.
Jan 19 10:32:48 nixos systemd[1]: Deactivated swap /dev/disk/by-label/swap.
Jan 19 10:32:48 nixos systemd[1]: dev-disk-by\x2ddiskseq-2\x2dpart2.swap: Deactivated successfully.
Jan 19 10:32:48 nixos systemd[1]: Deactivated swap /dev/disk/by-diskseq/2-part2.
Jan 19 10:32:48 nixos systemd[1]: dev-disk-by\x2dpath-pci\x2d0000:02:00.1\x2data\x2d1.0\x2dpart2.swap: Deactivated successfully.
Jan 19 10:32:48 nixos systemd[1]: Deactivated swap /dev/disk/by-path/pci-0000:02:00.1-ata-1.0-part2.
Jan 19 10:32:48 nixos systemd[1]: dev-disk-by\x2dpath-pci\x2d0000:02:00.1\x2data\x2d1\x2dpart2.swap: Deactivated successfully.
Jan 19 10:32:48 nixos systemd[1]: Deactivated swap /dev/disk/by-path/pci-0000:02:00.1-ata-1-part2.
Jan 19 10:32:48 nixos systemd[1]: dev-disk-by\x2dpath-pci\x2d0000:02:00.1\x2data\x2d1.0\x2dpart-by\x2dpartuuid-7a2cc1ae\x2d1ac5\x2d4ab2\x2db0a0\x2d4cce2fcb6192.swap: Deactivated successfully.
Jan 19 10:32:48 nixos systemd[1]: Deactivated swap /dev/disk/by-path/pci-0000:02:00.1-ata-1.0-part/by-partuuid/7a2cc1ae-1ac5-4ab2-b0a0-4cce2fcb6192.
Jan 19 10:32:48 nixos systemd[1]: dev-disk-by\x2did-ata\x2dST4000DM004\x2d2U9104_ZW63EJV2\x2dpart2.swap: Deactivated successfully.
Jan 19 10:32:48 nixos systemd[1]: Deactivated swap /dev/disk/by-id/ata-ST4000DM004-2U9104_ZW63EJV2-part2.
Jan 19 10:32:48 nixos systemd[1]: dev-disk-by\x2dpartlabel-swap.swap: Deactivated successfully.
Jan 19 10:32:48 nixos systemd[1]: Deactivated swap /dev/disk/by-partlabel/swap.
Jan 19 10:32:48 nixos systemd[1]: dev-disk-by\x2did-wwn\x2d0x5000c500ea6741a6\x2dpart2.swap: Deactivated successfully.
Jan 19 10:32:48 nixos systemd[1]: Deactivated swap /dev/disk/by-id/wwn-0x5000c500ea6741a6-part2.
Jan 19 10:32:48 nixos systemd[1]: dev-disk-by\x2dpath-pci\x2d0000:02:00.1\x2data\x2d1.0\x2dpart-by\x2dpartnum-2.swap: Deactivated successfully.
Jan 19 10:32:48 nixos systemd[1]: Deactivated swap /dev/disk/by-path/pci-0000:02:00.1-ata-1.0-part/by-partnum/2.
Jan 19 10:32:48 nixos systemd[1]: dev-disk-by\x2dpath-pci\x2d0000:02:00.1\x2data\x2d1.0\x2dpart-by\x2dpartlabel-swap.swap: Deactivated successfully.
Jan 19 10:32:48 nixos systemd[1]: Deactivated swap /dev/disk/by-path/pci-0000:02:00.1-ata-1.0-part/by-partlabel/swap.
Jan 19 10:32:48 nixos systemd[1]: dev-disk-by\x2dpath-pci\x2d0000:02:00.1\x2data\x2d1.0\x2dpart-by\x2duuid-9080c5a7\x2d7895\x2d434c\x2dbab6\x2d8451bb5da66e.swap: Deactivated successfully.
Jan 19 10:32:48 nixos systemd[1]: Deactivated swap /dev/disk/by-path/pci-0000:02:00.1-ata-1.0-part/by-uuid/9080c5a7-7895-434c-bab6-8451bb5da66e.
Jan 19 10:32:48 nixos systemd[1]: dev-disk-by\x2ddesignator-swap.swap: Deactivated successfully.
Jan 19 10:32:48 nixos systemd[1]: Deactivated swap /dev/disk/by-designator/swap.
Jan 19 10:32:48 nixos systemd[1]: dev-sda2.swap: Deactivated successfully.
Jan 19 10:32:48 nixos systemd[1]: Deactivated swap /dev/sda2.
Jan 19 10:32:48 nixos systemd[1]: dev-disk-by\x2duuid-9080c5a7\x2d7895\x2d434c\x2dbab6\x2d8451bb5da66e.swap: Deactivated successfully.
Jan 19 10:32:48 nixos systemd[1]: Deactivated swap /dev/disk/by-uuid/9080c5a7-7895-434c-bab6-8451bb5da66e.
Jan 19 10:32:48 nixos systemd[1]: Reached target Unmount All Filesystems.
Jan 19 10:32:48 nixos systemd[1]: firewall.service: Deactivated successfully.
Jan 19 10:32:48 nixos systemd[1]: Stopped Firewall.
Jan 19 10:32:48 nixos systemd[1]: systemd-modules-load.service: Deactivated successfully.
Jan 19 10:32:48 nixos systemd[1]: Stopped Load Kernel Modules.
Jan 19 10:32:48 nixos systemd[1]: systemd-modules-load.service: Consumed 1.500s CPU time, 92.8M memory peak, 21.1M read from disk.
Jan 19 10:32:48 nixos systemd[1]: Reached target System Shutdown.
Jan 19 10:32:48 nixos systemd[1]: Reached target Late Shutdown Services.
Jan 19 10:32:48 nixos systemd[1]: systemd-reboot.service: Deactivated successfully.
Jan 19 10:32:48 nixos systemd[1]: Finished System Reboot.
Jan 19 10:32:48 nixos systemd[1]: Reached target System Reboot.
Jan 19 10:32:48 nixos systemd[1]: Shutting down.
Jan 19 10:32:48 nixos systemd[1]: Using hardware watchdog /dev/watchdog0: 'SP5100 TCO timer', version 0.
Jan 19 10:32:48 nixos systemd[1]: Watchdog running with a hardware timeout of 10min.
Jan 19 10:32:48 nixos kernel: watchdog: watchdog0: watchdog did not stop!
Jan 19 10:32:48 nixos systemd-shutdown[1]: Using hardware watchdog /dev/watchdog0: 'SP5100 TCO timer', version 0.
Jan 19 10:32:49 nixos systemd-shutdown[1]: Watchdog running with a hardware timeout of 10min.
Jan 19 10:32:49 nixos systemd-shutdown[1]: Syncing filesystems and block devices.
Jan 19 10:32:49 nixos systemd-shutdown[1]: Sending SIGTERM to remaining processes...
Jan 19 10:32:49 nixos systemd-journald[424]: Received SIGTERM from PID 1 (systemd-shutdow).
Jan 19 10:32:49 nixos systemd-udevd[444]: Failed to remove file descriptor "config-serialization" from the store, ignoring: Connection refused
Jan 19 10:32:49 nixos systemd-udevd[444]: Failed to push serialization fd to service manager: Connection refused
Jan 19 10:32:49 nixos systemd-journald[424]: Journal stopped

So, quick update. I managed to break my bootloader, and screw up my drive. When I started repairing it, I recognized my boot partition was ESP format, but was booted as legacy. After fixing my drive, I changed the boot mode to UEFI using the UEFI installation media, using nixos-enter and sudo nixos-rebuild switch –install-bootloader. I also changed the UEFI system from grub to systemd-boot. I did not do this with the intent of fixing the restart/ shutdown issue, but something along the line fixed it.