From dd7c66a3ab2735feabc413c9757bf0b6ae5db3b0 Mon Sep 17 00:00:00 2001 From: Gerg-L Date: Wed, 10 Jul 2024 21:51:55 -0400 Subject: [PATCH] windows alias: add reduced timeout. switch to writeShellScriptBin --- hosts/gerg-desktop/boot.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/hosts/gerg-desktop/boot.nix b/hosts/gerg-desktop/boot.nix index 89fed30..fc62239 100644 --- a/hosts/gerg-desktop/boot.nix +++ b/hosts/gerg-desktop/boot.nix @@ -15,9 +15,14 @@ in { imports = [ lanzaboote.nixosModules.lanzaboote ]; - environment.systemPackages = [ pkgs.sbctl ]; - - environment.shellAliases.windows = "bootctl set-oneshot windows.conf && reboot"; + environment.systemPackages = [ + pkgs.sbctl + (pkgs.writeShellScriptBin "windows" '' + bootctl set-oneshot windows.conf + bootctl set-timeout-oneshot 1 + reboot + '') + ]; boot = { initrd = {