• 0 Posts
  • 1 Comment
Joined 1 year ago
cake
Cake day: June 21st, 2025

help-circle
  • This line:

    ${pkgs.coreutils}/run/current-system/sw/bin/reboot
    

    is incorrect, as you’ve mixed a package path with an absolute path. Additionally, on my system at least, reboot is a part of pkgs.systemd and not pkgs.coreutils.

    So this should work:

    ${pkgs.systemd}/bin/reboot
    

    Or, since systemd is always installed on NixOS systems, you can use the absolute wrapper path:

    /run/current-system/sw/bin/reboot