windows alias: add reduced timeout. switch to writeShellScriptBin

This commit is contained in:
Gerg-L 2024-07-10 21:51:55 -04:00
parent 12cf6b2371
commit dd7c66a3ab
Signed by: gerg-l
SSH key fingerprint: SHA256:FPYDHIkvMocr4wdmZXpgpJjsb2Tw6rASs2ISPbOb0KI

View file

@ -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 = {