secureboot: generalise, enable for framenix
This commit is contained in:
parent
2c74301ec4
commit
fbc3b8f952
5 changed files with 34 additions and 26 deletions
|
|
@ -84,5 +84,8 @@ in
|
|||
unstable.amd-debug-tools
|
||||
];
|
||||
|
||||
schmittlauch.audio-sharing.enable = true;
|
||||
schmittlauch = {
|
||||
audio-sharing.enable = true;
|
||||
secureboot.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,8 +12,6 @@
|
|||
./hardware-configuration.nix
|
||||
./storage.nix
|
||||
./swap.nix
|
||||
# FIXME: move this to common, conditional enabling
|
||||
./secureboot.nix
|
||||
];
|
||||
|
||||
hardware.trackpoint = {
|
||||
|
|
@ -24,7 +22,10 @@
|
|||
|
||||
boot.extraModprobeConfig = "options thinkpad_acpi fan_control=1"; # enable fan control via echo to /proc/acpi/ibm/fan
|
||||
|
||||
schmittlauch.guestUser.enable = true;
|
||||
schmittlauch = {
|
||||
guestUser.enable = true;
|
||||
secureboot.enable = true;
|
||||
};
|
||||
|
||||
networking.hostName = "thinknix";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,22 +0,0 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
# UEFI secure boot
|
||||
environment.systemPackages = [ pkgs.sbctl ];
|
||||
# Lanzaboote currently replaces the systemd-boot module.
|
||||
# This setting is usually set to true in configuration.nix
|
||||
# generated at installation time. So we force it to false
|
||||
# for now.
|
||||
boot.loader.systemd-boot.enable = lib.mkForce false;
|
||||
|
||||
boot.lanzaboote = {
|
||||
enable = true;
|
||||
pkiBundle = "/etc/secureboot";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue