nixos-config/system/hardened.nix

16 lines
439 B
Nix
Raw Normal View History

{ config, modulesPath, pkgs, lib, ... }:
2020-08-14 23:19:21 +02:00
2020-09-23 13:19:19 +02:00
with lib; {
imports = [ "${modulesPath}/profiles/hardened.nix" ];
2020-08-14 23:19:21 +02:00
2023-04-17 12:42:15 +02:00
# Xbox Controller not working via Bluetooth if enabled
security.lockKernelModules = mkOverride 0 false;
boot.loader.systemd-boot.editor = mkDefault false;
2020-08-14 23:19:21 +02:00
# scudo causes Firefox & Tor Browser segfaults
environment.memoryAllocator.provider = "libc";
2023-04-17 12:42:15 +02:00
security.allowSimultaneousMultithreading = mkOverride 0 true;
2020-08-14 23:19:21 +02:00
}