mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
windows alias: add reduced timeout. switch to writeShellScriptBin
This commit is contained in:
parent
12cf6b2371
commit
dd7c66a3ab
1 changed files with 8 additions and 3 deletions
|
|
@ -15,9 +15,14 @@ in
|
||||||
{
|
{
|
||||||
imports = [ lanzaboote.nixosModules.lanzaboote ];
|
imports = [ lanzaboote.nixosModules.lanzaboote ];
|
||||||
|
|
||||||
environment.systemPackages = [ pkgs.sbctl ];
|
environment.systemPackages = [
|
||||||
|
pkgs.sbctl
|
||||||
environment.shellAliases.windows = "bootctl set-oneshot windows.conf && reboot";
|
(pkgs.writeShellScriptBin "windows" ''
|
||||||
|
bootctl set-oneshot windows.conf
|
||||||
|
bootctl set-timeout-oneshot 1
|
||||||
|
reboot
|
||||||
|
'')
|
||||||
|
];
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
initrd = {
|
initrd = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue