summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorSilas Schöffel <sils@sils.li>2024-04-09 16:44:21 +0200
committerSilas Schöffel <sils@sils.li>2024-04-10 18:04:16 +0200
commitd0565553a231fc9a2cfbfca13d261199d1d0b8e8 (patch)
tree1f2e1122d09052542fde1734aef2c66c208fe64e
parentflake.lock: update (diff)
downloadnix-config-d0565553a231fc9a2cfbfca13d261199d1d0b8e8.tar.gz
nix-config-d0565553a231fc9a2cfbfca13d261199d1d0b8e8.zip
basesystem: set lanzaboote.settings.editor to false
This prevents gaining a root shell with init=/bin/sh
Diffstat (limited to '')
-rw-r--r--modules/nixos/sils/basesystem.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/nixos/sils/basesystem.nix b/modules/nixos/sils/basesystem.nix
index 1812feb..6d10f3f 100644
--- a/modules/nixos/sils/basesystem.nix
+++ b/modules/nixos/sils/basesystem.nix
@@ -28,6 +28,9 @@
         enable = true;
         configurationLimit = 10;
         pkiBundle = "/etc/secureboot";
+        settings = {
+          editor = false;
+        };
       };
       resumeDevice = config.sils.meta.mainDisk;
       kernelParams = ["resume_offset=369403136"];