Skip to content

Commit 85ef166

Browse files
committed
feat: enable lanzaboote for hp-laptop
Signed-off-by: Reputable2722 <153411261+Reputable2772@users.noreply.github.com>
1 parent 2304f25 commit 85ef166

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

System/HP-Laptop/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
./cachix-agent.nix
44
./gnome.nix
55
./hardware-configuration.nix
6+
./lanzaboote.nix
67
./networking.nix
78
./users.nix
89
];

System/HP-Laptop/lanzaboote.nix

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
config,
3+
inputs,
4+
lib,
5+
...
6+
}:
7+
{
8+
imports = [
9+
inputs.lanzaboote.nixosModules.lanzaboote
10+
];
11+
12+
nix.settings = {
13+
substituters = [ "https://lanzaboote.cachix.org?priority=40" ];
14+
trusted-public-keys = [ "lanzaboote.cachix.org-1:Nt9//zGmqkg1k5iu+B3bkj3OmHKjSw9pvf3faffLLNk=" ];
15+
};
16+
17+
boot.loader.systemd-boot.enable = lib.mkForce (!config.boot.lanzaboote.enable);
18+
boot.lanzaboote = {
19+
enable = true;
20+
pkiBundle = "/var/lib/sbctl";
21+
settings.editor = true;
22+
autoGenerateKeys.enable = true;
23+
autoEnrollKeys.enable = true;
24+
};
25+
}

0 commit comments

Comments
 (0)