aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/os-specific/linux/kernel/common-config.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/os-specific/linux/kernel/common-config.nix')
-rw-r--r--nixpkgs/pkgs/os-specific/linux/kernel/common-config.nix46
1 files changed, 29 insertions, 17 deletions
diff --git a/nixpkgs/pkgs/os-specific/linux/kernel/common-config.nix b/nixpkgs/pkgs/os-specific/linux/kernel/common-config.nix
index 3b409f15aba..963f3018e11 100644
--- a/nixpkgs/pkgs/os-specific/linux/kernel/common-config.nix
+++ b/nixpkgs/pkgs/os-specific/linux/kernel/common-config.nix
@@ -33,7 +33,6 @@ let
DYNAMIC_DEBUG = yes;
TIMER_STATS = whenOlder "4.11" yes;
DEBUG_NX_TEST = whenOlder "4.11" no;
- CPU_NOTIFIER_ERROR_INJECT = whenOlder "4.4" (option no);
DEBUG_STACK_USAGE = no;
DEBUG_STACKOVERFLOW = mkIf (!features.grsecurity) no;
RCU_TORTURE_TEST = no;
@@ -42,6 +41,8 @@ let
CRASH_DUMP = option no;
# Easier debugging of NFS issues.
SUNRPC_DEBUG = yes;
+ # Provide access to tunables like sched_migration_cost_ns
+ SCHED_DEBUG = yes;
};
power-management = {
@@ -97,8 +98,6 @@ let
networking = {
NET = yes;
IP_PNP = no;
- NETFILTER = yes;
- NETFILTER_ADVANCED = yes;
IP_VS_PROTO_TCP = yes;
IP_VS_PROTO_UDP = yes;
IP_VS_PROTO_ESP = yes;
@@ -143,12 +142,32 @@ let
KEY_DH_OPERATIONS = whenAtLeast "4.7" yes;
# needed for nftables
- NF_TABLES_INET = whenAtLeast "4.17" yes;
- NF_TABLES_NETDEV = whenAtLeast "4.17" yes;
- NF_TABLES_IPV4 = whenAtLeast "4.17" yes;
- NF_TABLES_ARP = whenAtLeast "4.17" yes;
- NF_TABLES_IPV6 = whenAtLeast "4.17" yes;
- NF_TABLES_BRIDGE = whenBetween "4.17" "5.3" yes;
+ # Networking Options
+ NETFILTER = yes;
+ NETFILTER_ADVANCED = yes;
+ # Core Netfilter Configuration
+ NF_CONNTRACK_ZONES = yes;
+ NF_CONNTRACK_EVENTS = yes;
+ NF_CONNTRACK_TIMEOUT = yes;
+ NF_CONNTRACK_TIMESTAMP = yes;
+ NETFILTER_NETLINK_GLUE_CT = yes;
+ NF_TABLES_INET = whenAtLeast "4.19" yes;
+ NF_TABLES_NETDEV = whenAtLeast "4.19" yes;
+ # IP: Netfilter Configuration
+ NF_TABLES_IPV4 = yes;
+ NF_TABLES_ARP = whenAtLeast "4.19" yes;
+ # IPv6: Netfilter Configuration
+ NF_TABLES_IPV6 = yes;
+ # Bridge Netfilter Configuration
+ NF_TABLES_BRIDGE = mkMerge [ (whenBetween "4.19" "5.3" yes)
+ (whenAtLeast "5.3" module) ];
+
+ # needed for ss
+ INET_DIAG = yes;
+ INET_TCP_DIAG = module;
+ INET_UDP_DIAG = module;
+ INET_RAW_DIAG = whenAtLeast "4.14" module;
+ INET_DIAG_DESTROY = whenAtLeast "4.9" yes;
};
wireless = {
@@ -185,8 +204,6 @@ let
};
video = {
- # Enable KMS for devices whose X.org driver supports it
- DRM_I915_KMS = whenOlder "4.3" yes;
# Allow specifying custom EDID on the kernel command line
DRM_LOAD_EDID_FIRMWARE = yes;
VGA_SWITCHEROO = yes; # Hybrid graphics support
@@ -255,7 +272,6 @@ let
EXT2_FS_XATTR = yes;
EXT2_FS_POSIX_ACL = yes;
EXT2_FS_SECURITY = yes;
- EXT2_FS_XIP = whenOlder "4.0" yes; # Ext2 execute in place support
EXT3_FS_POSIX_ACL = yes;
EXT3_FS_SECURITY = yes;
@@ -357,10 +373,6 @@ let
MICROCODE = yes;
MICROCODE_INTEL = yes;
MICROCODE_AMD = yes;
-
- MICROCODE_EARLY = whenOlder "4.4" yes;
- MICROCODE_INTEL_EARLY = whenOlder "4.4" yes;
- MICROCODE_AMD_EARLY = whenOlder "4.4" yes;
} // optionalAttrs (versionAtLeast version "4.10") {
# Write Back Throttling
# https://lwn.net/Articles/682582/
@@ -705,7 +717,7 @@ let
PREEMPT = no;
PREEMPT_VOLUNTARY = yes;
-
+
X86_AMD_PLATFORM_DEVICE = yes;
} // optionalAttrs (stdenv.hostPlatform.system == "x86_64-linux" || stdenv.hostPlatform.system == "aarch64-linux") {