lanzaboote to limine
This commit is contained in:
parent
59e227dbf4
commit
d3756ee646
2 changed files with 20 additions and 16 deletions
|
|
@ -38,10 +38,6 @@
|
|||
url = "git+ssh://git@git.nyxerinys.dev:222/nyxerinys/nix-secrets";
|
||||
flake = false;
|
||||
};
|
||||
lanzaboote = {
|
||||
url = "github:nix-community/lanzaboote/v1.2.0";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, nix-darwin, home-manager, ... } @ inputs:
|
||||
|
|
|
|||
|
|
@ -1,20 +1,28 @@
|
|||
{ inputs, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
inputs.lanzaboote.nixosModules.lanzaboote
|
||||
];
|
||||
|
||||
boot = {
|
||||
lanzaboote = {
|
||||
enable = true;
|
||||
pkiBundle = "/var/lib/sbctl";
|
||||
autoGenerateKeys.enable = true;
|
||||
autoEnrollKeys.enable = true;
|
||||
loader = {
|
||||
efi.canTouchEfiVariables = true;
|
||||
grub.enable = lib.mkForce false;
|
||||
systemd-boot.enable = lib.mkForce false;
|
||||
limine = {
|
||||
enable = true;
|
||||
resolution = "3840x1080";
|
||||
enableEditor = true;
|
||||
maxGenerations = 11;
|
||||
secureBoot = {
|
||||
enable = true;
|
||||
autoGenerateKeys = true;
|
||||
autoEnrollKeys.enable = true;
|
||||
};
|
||||
extraEntries = ''
|
||||
/Windows
|
||||
protocol: efi
|
||||
path: boot():/EFI/Microsoft/Boot/bootmgfw.efi
|
||||
'';
|
||||
};
|
||||
};
|
||||
loader.efi.canTouchEfiVariables = true;
|
||||
loader.grub.enable = lib.mkForce false;
|
||||
loader.systemd-boot.enable = lib.mkForce false;
|
||||
};
|
||||
|
||||
environment.systemPackages = [ pkgs.sbctl ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue