summaryrefslogtreecommitdiff
path: root/hosts/toaster/secure-boot.nix
diff options
context:
space:
mode:
authorGrigory Shipunov2023-04-23 01:03:53 +0200
committerGrigory Shipunov2023-04-23 17:23:37 +0200
commit7e815dd5d07e05d6b79cf31385ae5ab776625184 (patch)
tree5819b1569c6c22cc687e9d94b2621e68a400cf4f /hosts/toaster/secure-boot.nix
parentad9ced32507e9047075ad542387bced8ef62632b (diff)
first stab at secure boot
Diffstat (limited to 'hosts/toaster/secure-boot.nix')
-rw-r--r--hosts/toaster/secure-boot.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/hosts/toaster/secure-boot.nix b/hosts/toaster/secure-boot.nix
new file mode 100644
index 0000000..d18e1cb
--- /dev/null
+++ b/hosts/toaster/secure-boot.nix
@@ -0,0 +1,12 @@
+{ pkgs, lib, ... }: {
+ boot = {
+ bootspec.enable = true;
+ loader.systemd-boot.enable = lib.mkForce false;
+ lanzaboote = {
+ enable = true;
+ pkiBundle = "/etc/secureboot";
+ };
+ };
+
+ environment.systemPackages = [ pkgs.sbctl ];
+}