In the evening I turn off my computers (cut the power) and the next morning when I restart NixOS it reboots after about 4 minutes and then if I reboot during the day no problem.
Problem only at the first start in the morning.
➜ systemd-analyze
Startup finished in 12.519s (firmware) + 4.498s (loader) + 2.595s (kernel) + 4min 21.865s (userspace) = 4min 41.478s
graphical.target reached after 6.468s in userspace.
What takes 4min 21.865s minutes is my 4TB external drive.
When you say “exact problem”, you’re also cutting power without a proper shutdown? If so, have you also considered shutting down in the standard manner?
@TLATER i`ve looked into some of the possible logs in the system and did not find anything useful. Could you specify what kind of logs/procedures would be of interest for me to share in here?
@waffle8946 i`ve been having this problem for a while now and thought it could have something to do with RAM in my system. Anyway, I find it odd because its the exact same as in @Breizil29 account.
My system seems to reboot after some minutes of activity, always only in the first boot of the day. Sometimes it seems to be like if someone had pushed the power button or triggered a reboot in software. Since the shutdown part of the reboot is very fast in my system, i`m not always sure.
I was working around this issue by always rebooting the system in the first boot, since i had no time to try to fix it lately.
This enables a periodically executed systemd service named nixos-upgrade.service. If the allowReboot option is false, it runs nixos-rebuild switch --upgrade to upgrade NixOS to the latest version in the current channel. (To see when the service runs, see systemctl list-timers.) If allowReboot is true, then the system will automatically reboot if the new generation contains a different kernel, initrd or kernel modules. You can also specify a channel explicitly, e.g.