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";
|
url = "git+ssh://git@git.nyxerinys.dev:222/nyxerinys/nix-secrets";
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
lanzaboote = {
|
|
||||||
url = "github:nix-community/lanzaboote/v1.2.0";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, nix-darwin, home-manager, ... } @ inputs:
|
outputs = { self, nixpkgs, nix-darwin, home-manager, ... } @ inputs:
|
||||||
|
|
|
||||||
|
|
@ -1,20 +1,28 @@
|
||||||
{ inputs, lib, pkgs, ... }:
|
{ inputs, lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
|
||||||
inputs.lanzaboote.nixosModules.lanzaboote
|
|
||||||
];
|
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
lanzaboote = {
|
loader = {
|
||||||
enable = true;
|
efi.canTouchEfiVariables = true;
|
||||||
pkiBundle = "/var/lib/sbctl";
|
grub.enable = lib.mkForce false;
|
||||||
autoGenerateKeys.enable = true;
|
systemd-boot.enable = lib.mkForce false;
|
||||||
autoEnrollKeys.enable = true;
|
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 ];
|
environment.systemPackages = [ pkgs.sbctl ];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue