nixos/headless: Only disable module loading if supported

This commit is contained in:
Mikael Voss 2024-10-11 00:43:37 +02:00
parent dc1de1a343
commit e7b2d8b59a
No known key found for this signature in database

View file

@ -13,7 +13,7 @@
hardware.graphics.enable = false;
security.lockKernelModules = true;
security.lockKernelModules = lib.mkIf (config.boot.kernelPackages.kernel.config.isEnabled "MODULES") true;
security.protectKernelImage = true;
services.openssh.enable = true;
services.openssh.openFirewall = true;