feat(nix): update secure boot and HALO system configuration
- Set `pkiBundle` in `secureboot` to use `mkDefault` for better configurability. - Added kernel parameters for HALO, improving performance and boot customization. - Configured ROCm symlink and switched HALO to `linuxPackages_latest`.
This commit is contained in:
parent
52e1276115
commit
e5615c85bf
3 changed files with 26 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ in
|
||||||
boot = {
|
boot = {
|
||||||
lanzaboote = {
|
lanzaboote = {
|
||||||
enable = true;
|
enable = true;
|
||||||
pkiBundle = "/etc/secureboot";
|
pkiBundle = mkDefault "/etc/secureboot";
|
||||||
};
|
};
|
||||||
loader.systemd-boot.enable = lib.mkForce false;
|
loader.systemd-boot.enable = lib.mkForce false;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,22 @@ with lib.metacfg;
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./xremap.nix
|
./xremap.nix
|
||||||
];
|
];
|
||||||
|
boot.lanzaboote.pkiBundle = "/var/lib/sbctl";
|
||||||
|
boot.kernelPackages = lib.mkOverride 0 pkgs.linuxPackages_latest;
|
||||||
|
|
||||||
|
systemd.tmpfiles.rules =
|
||||||
|
let
|
||||||
|
rocmEnv = pkgs.symlinkJoin {
|
||||||
|
name = "rocm-combined";
|
||||||
|
paths = with pkgs.rocmPackages; [
|
||||||
|
rocblas
|
||||||
|
hipblas
|
||||||
|
clr
|
||||||
|
];
|
||||||
|
};
|
||||||
|
in [
|
||||||
|
"L+ /opt/rocm - - - - ${rocmEnv}"
|
||||||
|
];
|
||||||
|
|
||||||
powerManagement.cpuFreqGovernor = "performance";
|
powerManagement.cpuFreqGovernor = "performance";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,15 @@
|
||||||
boot.kernelModules = [ "kvm-amd" ];
|
boot.kernelModules = [ "kvm-amd" ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
boot.kernelParams = [
|
||||||
|
"lockdown=confidentiality"
|
||||||
|
"quiet"
|
||||||
|
"splash"
|
||||||
|
"video=efifb:nobgrt"
|
||||||
|
"ttm.pages_limit=31457280"
|
||||||
|
"ttm.page_pool_size=31457280"
|
||||||
|
];
|
||||||
|
|
||||||
fileSystems."/" = {
|
fileSystems."/" = {
|
||||||
device = "/dev/disk/by-uuid/d22a1052-f142-44c0-993c-76b15c27b2b3";
|
device = "/dev/disk/by-uuid/d22a1052-f142-44c0-993c-76b15c27b2b3";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue