mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
[Boot] Add kernel config option to aviallon namespace
Allows advanced patching / overriding of the kernel while still allowing to set the kernel in other modules.
This commit is contained in:
parent
3f22bcff49
commit
91c5ba1e69
3 changed files with 13 additions and 5 deletions
|
|
@ -41,7 +41,7 @@ in
|
|||
# imports = [
|
||||
# (modulesPath + "/profiles/hardened.nix")
|
||||
# ];
|
||||
boot.kernelPackages = mkIf cfg.hardcore pkgs.linuxPackages_hardened;
|
||||
aviallon.boot.kernel = mkIf cfg.hardcore pkgs.linuxKernel.kernels.linux_hardened;
|
||||
security.lockKernelModules = mkIf cfg.hardcore (mkOverride 500 true);
|
||||
# security.protectKernelImage = mkIf cfg.hardcore (mkOverride 500 false); # needed for kexec
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue