porcorosso: add 'windows' script for rebooting to windows

This commit is contained in:
Luke Granger-Brown 2020-05-10 15:25:37 +01:00
parent 823eab4775
commit 84b964fffd

View file

@ -98,6 +98,15 @@ in {
}; };
}) })
deluge deluge
(writeShellScriptBin "windows" ''
set -ue
if [[ $EUID -ne 0 ]]; then
exec sudo "$0" "$@"
fi
efibootmgr -n 0001
systemctl reboot
'')
]; ];
#hardware.nvidia.prime.offload.enable = true; #hardware.nvidia.prime.offload.enable = true;