Skip to content

Commit e5c2b9c

Browse files
committed
feat(lanzaboote): allow secureboot
1 parent d4b1791 commit e5c2b9c

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

flake.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@
7272
juicefs-csi-driver.url = "https://raw.githubusercontent.com/juicedata/juicefs-csi-driver/v0.25.2/deploy/k8s.yaml"; # gh-release-update
7373
kured.flake = false;
7474
kured.url = "github:kubereboot/kured";
75+
# lanzaboote.url = "github:nix-community/lanzaboote/v0.4.1";
76+
# lanzaboote.inputs.nixpkgs.follows = "nixpkgs";
7577
mac-app-util.url = "github:hraban/mac-app-util";
7678
microvm.url = "github:astro/microvm.nix";
7779
microvm.inputs.flake-utils.follows = "flake-utils";

flake/hosts.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@
8181
inputs.home-manager.nixosModules.home-manager
8282
inputs.impermanence.nixosModules.impermanence
8383
inputs.microvm.nixosModules.host
84+
inputs.lanzaboote.nixosModules.lanzaboote
8485
inputs.nixpkgs.nixosModules.notDetected
8586
../modules/default.nix
8687
];

profiles/secureboot.nix

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
lib,
3+
pkgs,
4+
...
5+
}: {
6+
environment.persistence."/keep".directories = [
7+
"/var/lib/sbctl"
8+
];
9+
10+
environment.systemPackages = [
11+
# For debugging and troubleshooting Secure Boot.
12+
pkgs.sbctl
13+
];
14+
15+
# Lanzaboote currently replaces the systemd-boot module.
16+
# This setting is usually set to true in configuration.nix
17+
# generated at installation time. So we force it to false
18+
# for now.
19+
# boot.loader.systemd-boot.enable = lib.mkForce false;
20+
21+
# boot.lanzaboote = {
22+
# enable = true;
23+
# pkiBundle = "/var/lib/sbctl";
24+
# };
25+
}

0 commit comments

Comments
 (0)