refactor: remove with lib
in some places
This commit is contained in:
parent
af71315ff2
commit
f5d872329b
|
@ -1,18 +1,18 @@
|
|||
{ config, modulesPath, pkgs, lib, ... }:
|
||||
|
||||
with lib; {
|
||||
{
|
||||
imports = [ "${modulesPath}/profiles/hardened.nix" ];
|
||||
|
||||
# @TODO hardened kernel causes Bluetooth issues
|
||||
boot.kernelPackages = mkOverride 900 pkgs.linuxPackages;
|
||||
boot.kernelPackages = lib.mkOverride 900 pkgs.linuxPackages;
|
||||
|
||||
# Xbox Controller not working via Bluetooth if enabled
|
||||
security.lockKernelModules = mkOverride 900 false;
|
||||
security.lockKernelModules = lib.mkOverride 900 false;
|
||||
|
||||
boot.loader.systemd-boot.editor = mkDefault false;
|
||||
boot.loader.systemd-boot.editor = lib.mkDefault false;
|
||||
|
||||
# scudo causes Firefox & Tor Browser segfaults
|
||||
environment.memoryAllocator.provider = mkOverride 900 "libc";
|
||||
environment.memoryAllocator.provider = lib.mkOverride 900 "libc";
|
||||
|
||||
security.allowSimultaneousMultithreading = mkOverride 900 true;
|
||||
security.allowSimultaneousMultithreading = lib.mkOverride 900 true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue