From 7e815dd5d07e05d6b79cf31385ae5ab776625184 Mon Sep 17 00:00:00 2001 From: Grigory Shipunov Date: Sun, 23 Apr 2023 01:03:53 +0200 Subject: first stab at secure boot --- hosts/toaster/secure-boot.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 hosts/toaster/secure-boot.nix (limited to 'hosts/toaster/secure-boot.nix') 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 ]; +} -- cgit v1.3.1