nixos/headless: Only disable module loading if supported

This commit is contained in:
Mikael 2024-10-11 00:43:37 +02:00
parent dc1de1a343
commit e7b2d8b59a
Signed by: mikael
SSH key fingerprint: SHA256:21QyD2Meiot7jOUVitIR5YkGB/XuXdCvLW1hE6dsri0

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;