From 84b964fffd48a0f2cf15825722b81cc114d4eea0 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sun, 10 May 2020 15:25:37 +0100 Subject: [PATCH] porcorosso: add 'windows' script for rebooting to windows --- ops/nixos/porcorosso/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ops/nixos/porcorosso/default.nix b/ops/nixos/porcorosso/default.nix index d4216dce84..9ad402e617 100644 --- a/ops/nixos/porcorosso/default.nix +++ b/ops/nixos/porcorosso/default.nix @@ -98,6 +98,15 @@ in { }; }) 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;