fix lanzaboote

This commit is contained in:
2026-06-07 16:00:15 +02:00
parent 7c6492f8cf
commit 11494b17fe
3 changed files with 12 additions and 14 deletions
+1 -7
View File
@@ -27,7 +27,7 @@
};
lanzaboote = {
url = "github:nix-community/lanzaboote/v0.4.3";
url = "github:nix-community/lanzaboote/v1.0.0";
inputs.nixpkgs.follows = "nixpkgs";
};
@@ -178,12 +178,6 @@
lanzaboote.nixosModules.lanzaboote
nixos-hardware.nixosModules.dell-xps-13-9370
sops-nix.nixosModules.sops
lanzaboote.nixosModules.lanzaboote
nixos-hardware.nixosModules.dell-xps-13-9370
];
};
+5 -5
View File
@@ -61,11 +61,11 @@
# Disable hibernation
systemd.sleep = {
extraConfig = ''
AllowHibernation=no
AllowHybridSleep=no
AllowSuspendThenHibernate=no
'';
settings.Sleep = {
AllowHibernation="no";
AllowHybridSleep="no";
AllowSuspendThenHibernate="no";
};
};
# Disable PCIe wakeups
+6 -2
View File
@@ -37,8 +37,12 @@
boot.loader.grub.enable = lib.mkForce false;
boot.lanzaboote = {
enable = true;
#pkiBundle = "/etc/secureboot"; # old way. use sbctl setup --migrate
pkiBundle = "/var/lib/sbctl"; # sudo sbctl create-keys
pkiBundle = "/var/lib/sbctl";
autoGenerateKeys.enable = true;
autoEnrollKeys = {
enable = true;
includeMicrosoftKeys = true;
};
};
# TPM-based LUKS unlock put in hardware configuration.nix.