Setup secure boot on x86 linux using lanzaboote
This commit is contained in:
parent
fe2b2532d7
commit
ac2d98a55b
3 changed files with 142 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ ... }:
|
||||
{ pkgs, lib, ... }:
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
|
|
@ -7,13 +7,23 @@
|
|||
|
||||
boot = {
|
||||
loader = {
|
||||
systemd-boot.enable = true;
|
||||
systemd-boot.enable = lib.mkForce false; # lanzaboote replaces systemd-boot module
|
||||
efi.canTouchEfiVariables = true;
|
||||
};
|
||||
lanzaboote = {
|
||||
enable = true;
|
||||
pkiBundle = "/var/lib/sbctl";
|
||||
};
|
||||
};
|
||||
|
||||
networking.hostName = "walnut-nixos";
|
||||
|
||||
environment = {
|
||||
systemPackages = with pkgs; [
|
||||
sbctl
|
||||
];
|
||||
};
|
||||
|
||||
programs = {
|
||||
sway.extraOptions = [
|
||||
"--unsupported-gpu"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue