]> Git — Sourcephile - sourcephile-nix.git/blob - nixos/profiles/hardware/cubieboard2.nix
carotte: fix build
[sourcephile-nix.git] / nixos / profiles / hardware / cubieboard2.nix
1 { pkgs, lib, config, modulesPath, ... }:
2 {
3 imports = [
4 "${modulesPath}/installer/sd-card/sd-image.nix"
5 ];
6
7 _module.args.CPUs = 2;
8
9 # Too CPU hungry for this hardware, for too little MiB saved
10 nix.settings.auto-optimise-store = false;
11
12 powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
13
14 boot.supportedFilesystems = [
15 #"btrfs"
16 #"reiserfs"
17 "vfat"
18 #"f2fs"
19 #"xfs"
20 #"zfs" # ZFS tools coredump with SIGSEGV
21 #"ntfs"
22 #"cifs"
23 ];
24
25 # The serial ports listed here are:
26 # - ttyS0: for Tegra (Jetson TK1)
27 # - ttymxc0: for i.MX6 (Wandboard)
28 # - ttyAMA0: for Allwinner (pcDuino3 Nano) and QEMU's -machine virt
29 # - ttyO0: for OMAP (BeagleBone Black)
30 # - ttySAC2: for Exynos (ODROID-XU3)
31 boot.consoleLogLevel = lib.mkDefault 7;
32 boot.kernelParams = [
33 "console=ttyS0,115200n8"
34 "console=ttymxc0,115200n8"
35 "console=ttyAMA0,115200n8"
36 "console=ttyO0,115200n8"
37 "console=ttySAC2,115200n8"
38 "console=tty0"
39 ];
40 boot.kernelPatches = [
41 /*
42 {
43 name = "0001-core_pattern-fix-too-small-CORENAME_MAX_SIZE";
44 patch = ../../../nixpkgs/patches/linux/0001-core_pattern-fix-too-small-CORENAME_MAX_SIZE.patch;
45 extraConfig = ''
46 '';
47 }
48 */
49 ];
50
51 nixpkgs.overlays = [
52 (finalPkgs: previousPkgs: {
53 # https://linux-sunxi.org/Mali_Open_Source_Driver#Configuration_and_Build
54 mesa = (previousPkgs.mesa.override {
55 eglPlatforms = [ "x11" ];
56 galliumDrivers = [
57 "lima"
58 #"panfrost"
59 "kmsro"
60 "swrast"
61 ];
62 enableGalliumNine = false;
63 vulkanDrivers = [
64 "swrast"
65 #"panfrost"
66 ];
67 #vulkanLayers = [ ];
68 }).overrideAttrs (previousAttrs: {
69 mesonFlags = previousAttrs.mesonFlags ++ [
70 # VDPAU state tracker requires at least the following gallium drivers:
71 # r600, radeonsi, nouveau or d3d12
72 "-Dgallium-vdpau=disabled"
73 "-Dgallium-va=disabled"
74 # XA state tracker requires at least one of the following gallium drivers:
75 # nouveau, freedreno, i915, svga.
76 "-Dgallium-xa=disabled"
77 ];
78 });
79 })
80 ];
81 boot.tmp.cleanOnBoot = true;
82 boot.tmp.useTmpfs = lib.mkForce false;
83 # TODO: is that needed?
84 hardware.enableRedistributableFirmware = true;
85 sdImage = {
86 postBuildCommands = ''
87 dd if=${pkgs.ubootCubieboard2}/u-boot-sunxi-with-spl.bin of=$img bs=1024 seek=8 conv=notrunc
88 '';
89 compressImage = true;
90 expandOnBoot = true;
91 firmwareSize = 1;
92 populateFirmwareCommands = "";
93 populateRootCommands = ''
94 mkdir -p ./files/boot
95 ${config.boot.loader.generic-extlinux-compatible.populateCmd} -c ${config.system.build.toplevel} -d ./files/boot
96 '';
97 };
98 boot.loader.grub.enable = false;
99 boot.loader.generic-extlinux-compatible.enable = true;
100 # nix -L build .#nixosConfigurations.${hostName}.config.boot.kernelPackages.kernel.configfile
101 boot.kernelPackages = lib.mkForce (
102 pkgs.linuxPackages_latest.extend (finalKernel: previousKernel: {
103 kernel = previousKernel.kernel.override {
104 defconfig = "sunxi_defconfig";
105 structuredExtraConfig = with lib.kernel; {
106 # Workaround https://github.com/NixOS/nixpkgs/pull/141942#issuecomment-954301443
107 DEBUG_INFO = lib.mkForce no;
108 DEBUG_INFO_BTF = lib.mkForce no;
109 SUSPEND = no;
110 PM = no;
111 PM_SLEEP = no;
112 NVME_CORE = no;
113 TORTURE_TEST = no; # TODO: check if it's possible
114 USB_SERIAL_CH341 = module;
115 USB_SERIAL_PL2303 = module;
116 REGULATOR = lib.mkForce no;
117 MFD_CORE = no;
118 PCI = yes;
119 # TODO: Enable wdctl to work when /dev/watchdog is used by systemd
120 #WATCHDOG_SYSFS = yes;
121
122 #
123 # File systems
124 #
125 EXT4_FS = yes;
126 EXT4_USE_FOR_EXT2 = yes;
127 FUSE_FS = module;
128 PSTORE = yes;
129 CONFIGFS_FS = module;
130 VFAT_FS = yes;
131 ZSWAP = yes;
132
133 # misc
134 DAX = module;
135 DRM_DISPLAY_CONNECTOR = module;
136 NET_SCH_CODEL = module;
137 NET_SCH_FQ_CODEL = module;
138 UIO = module;
139
140 # WiFi
141 # Not built in the Cubieboard2, require an USB dongle
142 WIRELESS = yes;
143 CFG80211 = module;
144 LIB80211 = module;
145 LIB80211_CRYPT_CCMP = module;
146 MAC80211 = module;
147 MAC80211_HWSIM = module;
148 NETDEVICES = yes;
149 WLAN = yes;
150 WLAN_VENDOR_REALTEK = yes;
151 NET_VENDOR_REALTEK = yes;
152 REALTEK_PHY = yes;
153 RTL_CARDS = module;
154 RTL8188EE = module; # For 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]
155 RTLWIFI = module;
156 RTLWIFI_PCI = module;
157 RTLWIFI_DEBUG = yes;
158
159 # Sound options
160 SND_SOC_ADI = no;
161 SND_SOC_ADI_AXI_I2S = no;
162 SND_SOC_ADI_AXI_SPDIF = no;
163 SND_SOC_AMD_ACP = no;
164 SND_SOC_AMD_CZ_RT5645_MACH = no;
165 SND_ATMEL_SOC = no;
166 SND_SOC_MIKROE_PROTO = no;
167 SND_BCM63XX_I2S_WHISTLER = no;
168 SND_DESIGNWARE_I2S = no;
169 SND_SOC_FSL_ASRC = no;
170 SND_SOC_FSL_SAI = no;
171 SND_SOC_FSL_MQS = no;
172 SND_SOC_FSL_AUDMIX = no;
173 SND_SOC_FSL_SSI = no;
174 SND_SOC_FSL_SPDIF = no;
175 SND_SOC_FSL_ESAI = no;
176 SND_SOC_FSL_MICFIL = no;
177 SND_SOC_FSL_EASRC = no;
178 SND_SOC_FSL_XCVR = no;
179 SND_SOC_FSL_RPMSG = no;
180 SND_SOC_IMX_AUDMUX = no;
181 SND_I2S_HI6210_I2S = no;
182 SND_SOC_MTK_BTCVSD = no;
183 SND_SOC_XILINX_I2S = no;
184 SND_SOC_XILINX_AUDIO_FORMATTER = no;
185 SND_SOC_XILINX_SPDIF = no;
186 SND_SOC_XTFPGA_I2S = no;
187 SND_SOC_AC97_CODEC = no;
188 SND_SOC_ADAU_UTILS = no;
189 SND_SOC_ADAU1372 = no;
190 SND_SOC_ADAU1372_I2C = no;
191 SND_SOC_ADAU1372_SPI = no;
192 SND_SOC_ADAU1701 = no;
193 SND_SOC_ADAU17X1 = no;
194 SND_SOC_ADAU1761 = no;
195 SND_SOC_ADAU1761_I2C = no;
196 SND_SOC_ADAU1761_SPI = no;
197 SND_SOC_ADAU7002 = no;
198 SND_SOC_ADAU7118 = no;
199 SND_SOC_ADAU7118_HW = no;
200 SND_SOC_ADAU7118_I2C = no;
201 SND_SOC_AK4104 = no;
202 SND_SOC_AK4118 = no;
203 SND_SOC_AK4458 = no;
204 SND_SOC_AK4554 = no;
205 SND_SOC_AK4613 = no;
206 SND_SOC_AK4642 = no;
207 SND_SOC_AK5386 = no;
208 SND_SOC_AK5558 = no;
209 SND_SOC_ALC5623 = no;
210 SND_SOC_BD28623 = no;
211 SND_SOC_BT_SCO = no;
212 SND_SOC_CPCAP = no;
213 SND_SOC_CS35L32 = no;
214 SND_SOC_CS35L33 = no;
215 SND_SOC_CS35L34 = no;
216 SND_SOC_CS35L35 = no;
217 SND_SOC_CS35L36 = no;
218 SND_SOC_CS42L42 = no;
219 SND_SOC_CS42L51 = no;
220 SND_SOC_CS42L51_I2C = no;
221 SND_SOC_CS42L52 = no;
222 SND_SOC_CS42L56 = no;
223 SND_SOC_CS42L73 = no;
224 SND_SOC_CS4234 = no;
225 SND_SOC_CS4265 = no;
226 SND_SOC_CS4270 = no;
227 SND_SOC_CS4271 = no;
228 SND_SOC_CS4271_I2C = no;
229 SND_SOC_CS4271_SPI = no;
230 SND_SOC_CS42XX8 = no;
231 SND_SOC_CS42XX8_I2C = no;
232 SND_SOC_CS43130 = no;
233 SND_SOC_CS4341 = no;
234 SND_SOC_CS4349 = no;
235 SND_SOC_CS53L30 = no;
236 SND_SOC_CX2072X = no;
237 SND_SOC_DA7213 = no;
238 SND_SOC_DMIC = no;
239 SND_SOC_HDMI_CODEC = no;
240 SND_SOC_ES7134 = no;
241 SND_SOC_ES7241 = no;
242 SND_SOC_ES8316 = no;
243 SND_SOC_ES8328 = no;
244 SND_SOC_ES8328_I2C = no;
245 SND_SOC_ES8328_SPI = no;
246 SND_SOC_GTM601 = no;
247 SND_SOC_INNO_RK3036 = no;
248 SND_SOC_MAX98088 = no;
249 SND_SOC_MAX98357A = no;
250 SND_SOC_MAX98504 = no;
251 SND_SOC_MAX9867 = no;
252 SND_SOC_MAX98927 = no;
253 SND_SOC_MAX98373 = no;
254 SND_SOC_MAX98373_I2C = no;
255 SND_SOC_MAX98373_SDW = no;
256 SND_SOC_MAX98390 = no;
257 SND_SOC_MAX9860 = no;
258 SND_SOC_MSM8916_WCD_ANALOG = no;
259 SND_SOC_MSM8916_WCD_DIGITAL = no;
260 SND_SOC_PCM1681 = no;
261 SND_SOC_PCM1789 = no;
262 SND_SOC_PCM1789_I2C = no;
263 SND_SOC_PCM179X = no;
264 SND_SOC_PCM179X_I2C = no;
265 SND_SOC_PCM179X_SPI = no;
266 SND_SOC_PCM186X = no;
267 SND_SOC_PCM186X_I2C = no;
268 SND_SOC_PCM186X_SPI = no;
269 SND_SOC_PCM3060 = no;
270 SND_SOC_PCM3060_I2C = no;
271 SND_SOC_PCM3060_SPI = no;
272 SND_SOC_PCM3168A = no;
273 SND_SOC_PCM3168A_I2C = no;
274 SND_SOC_PCM3168A_SPI = no;
275 SND_SOC_PCM5102A = no;
276 SND_SOC_PCM512x = no;
277 SND_SOC_PCM512x_I2C = no;
278 SND_SOC_PCM512x_SPI = no;
279 SND_SOC_RK3328 = no;
280 SND_SOC_RK817 = no;
281 SND_SOC_RL6231 = no;
282 SND_SOC_RT1308_SDW = no;
283 SND_SOC_RT1316_SDW = no;
284 SND_SOC_RT5616 = no;
285 SND_SOC_RT5631 = no;
286 SND_SOC_RT5640 = no;
287 SND_SOC_RT5645 = no;
288 SND_SOC_RT5659 = no;
289 SND_SOC_RT5682 = no;
290 SND_SOC_RT5682_SDW = no;
291 SND_SOC_RT700 = no;
292 SND_SOC_RT700_SDW = no;
293 SND_SOC_RT711 = no;
294 SND_SOC_RT711_SDW = no;
295 SND_SOC_RT711_SDCA_SDW = no;
296 SND_SOC_RT715 = no;
297 SND_SOC_RT715_SDW = no;
298 SND_SOC_RT715_SDCA_SDW = no;
299 SND_SOC_SGTL5000 = no;
300 SND_SOC_SIGMADSP = no;
301 SND_SOC_SIGMADSP_I2C = no;
302 SND_SOC_SIGMADSP_REGMAP = no;
303 SND_SOC_SIMPLE_AMPLIFIER = no;
304 SND_SOC_SIMPLE_MUX = no;
305 SND_SOC_SPDIF = no;
306 SND_SOC_SSM2305 = no;
307 SND_SOC_SSM2518 = no;
308 SND_SOC_SSM2602 = no;
309 SND_SOC_SSM2602_SPI = no;
310 SND_SOC_SSM2602_I2C = no;
311 SND_SOC_SSM4567 = no;
312 SND_SOC_STA32X = no;
313 SND_SOC_STA350 = no;
314 SND_SOC_STI_SAS = no;
315 SND_SOC_TAS2552 = no;
316 SND_SOC_TAS2562 = no;
317 SND_SOC_TAS2764 = no;
318 SND_SOC_TAS2770 = no;
319 SND_SOC_TAS5086 = no;
320 SND_SOC_TAS571X = no;
321 SND_SOC_TAS5720 = no;
322 SND_SOC_TAS6424 = no;
323 SND_SOC_TDA7419 = no;
324 SND_SOC_TFA9879 = no;
325 SND_SOC_TFA989X = no;
326 SND_SOC_TLV320AIC23 = no;
327 SND_SOC_TLV320AIC23_I2C = no;
328 SND_SOC_TLV320AIC23_SPI = no;
329 SND_SOC_TLV320AIC31XX = no;
330 SND_SOC_TLV320AIC32X4 = no;
331 SND_SOC_TLV320AIC32X4_I2C = no;
332 SND_SOC_TLV320AIC32X4_SPI = no;
333 SND_SOC_TLV320AIC3X = no;
334 SND_SOC_TLV320AIC3X_I2C = no;
335 SND_SOC_TLV320AIC3X_SPI = no;
336 SND_SOC_TLV320ADCX140 = no;
337 SND_SOC_TS3A227E = no;
338 SND_SOC_TSCS42XX = no;
339 SND_SOC_TSCS454 = no;
340 SND_SOC_UDA1334 = no;
341 SND_SOC_WCD9335 = no;
342 SND_SOC_WCD_MBHC = no;
343 SND_SOC_WCD934X = no;
344 SND_SOC_WCD938X = no;
345 SND_SOC_WCD938X_SDW = no;
346 SND_SOC_WM8510 = no;
347 SND_SOC_WM8523 = no;
348 SND_SOC_WM8524 = no;
349 SND_SOC_WM8580 = no;
350 SND_SOC_WM8711 = no;
351 SND_SOC_WM8728 = no;
352 SND_SOC_WM8731 = no;
353 SND_SOC_WM8737 = no;
354 SND_SOC_WM8741 = no;
355 SND_SOC_WM8750 = no;
356 SND_SOC_WM8753 = no;
357 SND_SOC_WM8770 = no;
358 SND_SOC_WM8776 = no;
359 SND_SOC_WM8782 = no;
360 SND_SOC_WM8804 = no;
361 SND_SOC_WM8804_I2C = no;
362 SND_SOC_WM8804_SPI = no;
363 SND_SOC_WM8903 = no;
364 SND_SOC_WM8904 = no;
365 SND_SOC_WM8960 = no;
366 SND_SOC_WM8962 = no;
367 SND_SOC_WM8974 = no;
368 SND_SOC_WM8978 = no;
369 SND_SOC_WM8985 = no;
370 SND_SOC_WSA881X = no;
371 SND_SOC_ZL38060 = no;
372 SND_SOC_MAX9759 = no;
373 SND_SOC_MT6351 = no;
374 SND_SOC_MT6358 = no;
375 SND_SOC_MT6660 = no;
376 SND_SOC_NAU8315 = no;
377 SND_SOC_NAU8540 = no;
378 SND_SOC_NAU8810 = no;
379 SND_SOC_NAU8822 = no;
380 SND_SOC_NAU8824 = no;
381 SND_SOC_TPA6130A2 = no;
382 SND_SOC_LPASS_WSA_MACRO = no;
383 SND_SOC_LPASS_VA_MACRO = no;
384 SND_SOC_LPASS_RX_MACRO = no;
385 SND_SOC_LPASS_TX_MACRO = no;
386 SND_SIMPLE_CARD_UTILS = no;
387 SND_SIMPLE_CARD = no;
388 SND_AUDIO_GRAPH_CARD = no;
389 SND_VIRTIO = no;
390 MOST_SND = no;
391
392 #
393 # Networking options
394 #
395 TCP_CONG_BBR = module;
396 #PPP = no;
397 #PPP_MULTILINK = lib.mkForce no;
398 #PPP_FILTER = lib.mkForce no;
399 #PPPOE = no;
400 NET_DSA = no;
401 L2TP = no;
402 PARPORT = no;
403 PARIDE = no;
404 CDROM = no;
405 GPIOLIB = no;
406 NEW_LEDS = no;
407 #LEDS_CLASS = no;
408
409 IPV6 = yes;
410 IPV6_ROUTER_PREF = yes;
411 IPV6_ROUTE_INFO = yes;
412 IPV6_OPTIMISTIC_DAD = yes;
413 INET6_AH = module;
414 INET6_ESP = module;
415 INET6_ESP_OFFLOAD = module;
416 INET6_ESPINTCP = yes;
417 INET6_IPCOMP = module;
418 IPV6_MIP6 = module;
419 IPV6_ILA = module;
420 INET6_XFRM_TUNNEL = module;
421 INET6_TUNNEL = module;
422 IPV6_VTI = module;
423 IPV6_SIT = module;
424 IPV6_SIT_6RD = yes;
425 IPV6_NDISC_NODETYPE = yes;
426 IPV6_TUNNEL = module;
427 IPV6_MULTIPLE_TABLES = yes;
428 IPV6_SUBTREES = yes;
429 IPV6_MROUTE = yes;
430 IPV6_MROUTE_MULTIPLE_TABLES = yes;
431 IPV6_PIMSM_V2 = yes;
432 IPV6_SEG6_LWTUNNEL = yes;
433 IPV6_SEG6_HMAC = yes;
434 IPV6_RPL_LWTUNNEL = yes;
435 # CONFIG_MPTCP is not set
436 # CONFIG_NETWORK_SECMARK is not set
437 NET_PTP_CLASSIFY = yes;
438 # CONFIG_NETWORK_PHY_TIMESTAMPING is not set
439 NETFILTER = yes;
440 NETFILTER_ADVANCED = yes;
441
442 #
443 # Core Netfilter Configuration
444 #
445 NETFILTER_INGRESS = yes;
446 NETFILTER_NETLINK = module;
447 NETFILTER_FAMILY_ARP = yes;
448 NETFILTER_NETLINK_HOOK = module;
449 NETFILTER_NETLINK_ACCT = module;
450 NETFILTER_NETLINK_QUEUE = module;
451 NETFILTER_NETLINK_LOG = module;
452 NETFILTER_NETLINK_OSF = module;
453 NF_CONNTRACK = module;
454 NF_LOG_SYSLOG = module;
455 NETFILTER_CONNCOUNT = module;
456 NF_CONNTRACK_MARK = yes;
457 NF_CONNTRACK_ZONES = yes;
458 NF_CONNTRACK_PROCFS = yes;
459 NF_CONNTRACK_EVENTS = yes;
460 NF_CONNTRACK_TIMEOUT = yes;
461 NF_CONNTRACK_TIMESTAMP = yes;
462 NF_CONNTRACK_LABELS = yes;
463 NF_CT_PROTO_DCCP = yes;
464 NF_CT_PROTO_SCTP = yes;
465 NF_CT_PROTO_UDPLITE = yes;
466 # CONFIG_NF_CONNTRACK_AMANDA is not set
467 # CONFIG_NF_CONNTRACK_FTP is not set
468 # CONFIG_NF_CONNTRACK_H323 is not set
469 # CONFIG_NF_CONNTRACK_IRC is not set
470 # CONFIG_NF_CONNTRACK_NETBIOS_NS is not set
471 # CONFIG_NF_CONNTRACK_SNMP is not set
472 # CONFIG_NF_CONNTRACK_PPTP is not set
473 # CONFIG_NF_CONNTRACK_SANE is not set
474 # CONFIG_NF_CONNTRACK_SIP is not set
475 # CONFIG_NF_CONNTRACK_TFTP is not set
476 NF_CT_NETLINK = module;
477 NF_CT_NETLINK_TIMEOUT = module;
478 NF_CT_NETLINK_HELPER = module;
479 NETFILTER_NETLINK_GLUE_CT = yes;
480 NF_NAT = module;
481 NF_NAT_REDIRECT = yes;
482 NF_NAT_MASQUERADE = yes;
483 NETFILTER_SYNPROXY = module;
484 NF_TABLES = module;
485 NF_TABLES_INET = yes;
486 NF_TABLES_NETDEV = yes;
487 NFT_NUMGEN = module;
488 NFT_CT = module;
489 NFT_COUNTER = module;
490 NFT_CONNLIMIT = module;
491 NFT_LOG = module;
492 NFT_LIMIT = module;
493 NFT_MASQ = module;
494 NFT_REDIR = module;
495 NFT_NAT = module;
496 NFT_TUNNEL = module;
497 NFT_OBJREF = module;
498 NFT_QUEUE = module;
499 NFT_QUOTA = module;
500 NFT_REJECT = module;
501 NFT_REJECT_INET = module;
502 NFT_COMPAT = module;
503 NFT_HASH = module;
504 NFT_FIB = module;
505 NFT_FIB_INET = module;
506 NFT_XFRM = module;
507 NFT_SOCKET = module;
508 NFT_OSF = module;
509 NFT_TPROXY = module;
510 NFT_SYNPROXY = module;
511 NF_DUP_NETDEV = module;
512 NFT_DUP_NETDEV = module;
513 NFT_FWD_NETDEV = module;
514 NFT_FIB_NETDEV = module;
515 NFT_REJECT_NETDEV = module;
516 # CONFIG_NF_FLOW_TABLE is not set
517 NETFILTER_XTABLES = module;
518
519 #
520 # Xtables combined modules
521 #
522 NETFILTER_XT_MARK = module;
523 NETFILTER_XT_CONNMARK = module;
524 NETFILTER_XT_SET = module;
525
526 #
527 # Xtables targets
528 #
529 NETFILTER_XT_TARGET_CHECKSUM = module;
530 NETFILTER_XT_TARGET_CLASSIFY = module;
531 NETFILTER_XT_TARGET_CONNMARK = module;
532 NETFILTER_XT_TARGET_CT = module;
533 NETFILTER_XT_TARGET_DSCP = module;
534 NETFILTER_XT_TARGET_HL = module;
535 NETFILTER_XT_TARGET_HMARK = module;
536 NETFILTER_XT_TARGET_IDLETIMER = module;
537 NETFILTER_XT_TARGET_LED = module;
538 NETFILTER_XT_TARGET_LOG = module;
539 NETFILTER_XT_TARGET_MARK = module;
540 NETFILTER_XT_NAT = module;
541 NETFILTER_XT_TARGET_NETMAP = module;
542 NETFILTER_XT_TARGET_NFLOG = module;
543 NETFILTER_XT_TARGET_NFQUEUE = module;
544 NETFILTER_XT_TARGET_NOTRACK = module;
545 NETFILTER_XT_TARGET_RATEEST = module;
546 NETFILTER_XT_TARGET_REDIRECT = module;
547 NETFILTER_XT_TARGET_MASQUERADE = module;
548 NETFILTER_XT_TARGET_TEE = module;
549 NETFILTER_XT_TARGET_TPROXY = module;
550 NETFILTER_XT_TARGET_TRACE = module;
551 NETFILTER_XT_TARGET_TCPMSS = module;
552 NETFILTER_XT_TARGET_TCPOPTSTRIP = module;
553
554 #
555 # Xtables matches
556 #
557 NETFILTER_XT_MATCH_ADDRTYPE = module;
558 NETFILTER_XT_MATCH_BPF = module;
559 NETFILTER_XT_MATCH_CGROUP = module;
560 NETFILTER_XT_MATCH_CLUSTER = module;
561 NETFILTER_XT_MATCH_COMMENT = module;
562 NETFILTER_XT_MATCH_CONNBYTES = module;
563 NETFILTER_XT_MATCH_CONNLABEL = module;
564 NETFILTER_XT_MATCH_CONNLIMIT = module;
565 NETFILTER_XT_MATCH_CONNMARK = module;
566 NETFILTER_XT_MATCH_CONNTRACK = module;
567 NETFILTER_XT_MATCH_CPU = module;
568 NETFILTER_XT_MATCH_DCCP = module;
569 NETFILTER_XT_MATCH_DEVGROUP = module;
570 NETFILTER_XT_MATCH_DSCP = module;
571 NETFILTER_XT_MATCH_ECN = module;
572 NETFILTER_XT_MATCH_ESP = module;
573 NETFILTER_XT_MATCH_HASHLIMIT = module;
574 NETFILTER_XT_MATCH_HELPER = module;
575 NETFILTER_XT_MATCH_HL = module;
576 NETFILTER_XT_MATCH_IPCOMP = module;
577 NETFILTER_XT_MATCH_IPRANGE = module;
578 NETFILTER_XT_MATCH_L2TP = module;
579 NETFILTER_XT_MATCH_LENGTH = module;
580 NETFILTER_XT_MATCH_LIMIT = module;
581 NETFILTER_XT_MATCH_MAC = module;
582 NETFILTER_XT_MATCH_MARK = module;
583 NETFILTER_XT_MATCH_MULTIPORT = module;
584 NETFILTER_XT_MATCH_NFACCT = module;
585 NETFILTER_XT_MATCH_OSF = module;
586 NETFILTER_XT_MATCH_OWNER = module;
587 # CONFIG_NETFILTER_XT_MATCH_POLICY is not set
588 NETFILTER_XT_MATCH_PKTTYPE = module;
589 NETFILTER_XT_MATCH_QUOTA = module;
590 NETFILTER_XT_MATCH_RATEEST = module;
591 NETFILTER_XT_MATCH_REALM = module;
592 NETFILTER_XT_MATCH_RECENT = module;
593 NETFILTER_XT_MATCH_SCTP = module;
594 NETFILTER_XT_MATCH_SOCKET = module;
595 NETFILTER_XT_MATCH_STATE = module;
596 NETFILTER_XT_MATCH_STATISTIC = module;
597 NETFILTER_XT_MATCH_STRING = module;
598 NETFILTER_XT_MATCH_TCPMSS = module;
599 NETFILTER_XT_MATCH_TIME = module;
600 NETFILTER_XT_MATCH_U32 = module;
601 # end of Core Netfilter Configuration
602
603 IP_SET = module;
604 IP_SET_MAX.freeform = "256";
605 IP_SET_BITMAP_IP = module;
606 IP_SET_BITMAP_IPMAC = module;
607 IP_SET_BITMAP_PORT = module;
608 IP_SET_HASH_IP = module;
609 IP_SET_HASH_IPMARK = module;
610 IP_SET_HASH_IPPORT = module;
611 IP_SET_HASH_IPPORTIP = module;
612 IP_SET_HASH_IPPORTNET = module;
613 IP_SET_HASH_IPMAC = module;
614 IP_SET_HASH_MAC = module;
615 IP_SET_HASH_NETPORTNET = module;
616 IP_SET_HASH_NET = module;
617 IP_SET_HASH_NETNET = module;
618 IP_SET_HASH_NETPORT = module;
619 IP_SET_HASH_NETIFACE = module;
620 IP_SET_LIST_SET = module;
621 # CONFIG_IP_VS is not set
622
623 #
624 # IP: Netfilter Configuration
625 #
626 NF_DEFRAG_IPV4 = module;
627 NF_SOCKET_IPV4 = module;
628 NF_TPROXY_IPV4 = module;
629 NF_TABLES_IPV4 = yes;
630 NFT_REJECT_IPV4 = module;
631 NFT_DUP_IPV4 = module;
632 NFT_FIB_IPV4 = module;
633 # CONFIG_NF_TABLES_ARP is not set
634 NF_DUP_IPV4 = module;
635 # CONFIG_NF_LOG_ARP is not set
636 # CONFIG_NF_LOG_IPV4 is not set
637 NF_REJECT_IPV4 = module;
638 IP_NF_IPTABLES = module;
639 IP_NF_MATCH_AH = module;
640 IP_NF_MATCH_ECN = module;
641 IP_NF_MATCH_RPFILTER = module;
642 IP_NF_MATCH_TTL = module;
643 IP_NF_FILTER = module;
644 IP_NF_TARGET_REJECT = module;
645 IP_NF_TARGET_SYNPROXY = module;
646 IP_NF_NAT = module;
647 IP_NF_TARGET_MASQUERADE = module;
648 IP_NF_TARGET_NETMAP = module;
649 IP_NF_TARGET_REDIRECT = module;
650 IP_NF_MANGLE = module;
651 IP_NF_TARGET_CLUSTERIP = module;
652 IP_NF_TARGET_ECN = module;
653 IP_NF_TARGET_TTL = module;
654 # CONFIG_IP_NF_RAW is not set
655 # CONFIG_IP_NF_ARPTABLES is not set
656 # end of IP: Netfilter Configuration
657
658 #
659 # IPv6: Netfilter Configuration
660 #
661 NF_SOCKET_IPV6 = module;
662 NF_TPROXY_IPV6 = module;
663 NF_TABLES_IPV6 = yes;
664 NFT_REJECT_IPV6 = module;
665 NFT_DUP_IPV6 = module;
666 NFT_FIB_IPV6 = module;
667 NF_DUP_IPV6 = module;
668 NF_REJECT_IPV6 = module;
669 NF_LOG_IPV6 = module;
670 IP6_NF_IPTABLES = module;
671 IP6_NF_MATCH_AH = module;
672 IP6_NF_MATCH_EUI64 = module;
673 IP6_NF_MATCH_FRAG = module;
674 IP6_NF_MATCH_OPTS = module;
675 IP6_NF_MATCH_HL = module;
676 IP6_NF_MATCH_IPV6HEADER = module;
677 IP6_NF_MATCH_MH = module;
678 IP6_NF_MATCH_RPFILTER = module;
679 IP6_NF_MATCH_RT = module;
680 IP6_NF_MATCH_SRH = module;
681 IP6_NF_TARGET_HL = module;
682 IP6_NF_FILTER = module;
683 IP6_NF_TARGET_REJECT = module;
684 IP6_NF_TARGET_SYNPROXY = module;
685 IP6_NF_MANGLE = module;
686 IP6_NF_RAW = module;
687 IP6_NF_NAT = module;
688 IP6_NF_TARGET_MASQUERADE = module;
689 IP6_NF_TARGET_NPT = module;
690 # end of IPv6: Netfilter Configuration
691
692 NF_DEFRAG_IPV6 = module;
693
694 #
695 # Disabling
696 #
697 ADFS_FS = no;
698 AFFS_FS = no;
699 BEFS_FS = no;
700 BFS_FS = no;
701 BTRFS = no;
702 BTRFS_FS = no;
703 CEPH_FS = no;
704 CIFS = no;
705 CRAMFS = no;
706 ECRYPT_FS = no;
707 EFS_FS = no;
708 EROFS_FS = no;
709 EXT2_FS = no;
710 EXT3_FS = no;
711 F2FS_FS = lib.mkForce no;
712 GFS2_FS = no;
713 HFSPLUS_FS = no;
714 HFS_FS = no;
715 HPFS_FS = no;
716 JFS_FS = no;
717 MINIX_FS = no;
718 NET_9P = no;
719 NFSD = no;
720 NFS_FS = no;
721 NILFS2_FS = no;
722 OMFS_FS = no;
723 ORANGEFS_FS = no;
724 QNX4FS_FS = no;
725 QNX6FS_FS = no;
726 REISERFS_FS = no;
727 ROMFS_FS = no;
728 SQUASHFS = no;
729 SYSV_FS = no;
730 UFS_FS = no;
731 VXFS_FS = no;
732 XFS_FS = no;
733
734 MISC_FILESYSTEMS = no;
735
736 DECNET = no;
737 SCTP = no;
738 RDS = no;
739 DCCP = no;
740 TIPC = no;
741 CAIF = no;
742 CEPH = no;
743 VMW_SOCK = no;
744 HSR = no;
745 QRTR = no;
746 MPI = no;
747 RAID6 = no;
748 STAGING = lib.mkForce no;
749 ATH11K_PCI = no;
750 ATH12K = no;
751
752 "6LOWPAN" = no;
753 ARCNET = no;
754 B53 = no;
755 BATMAN_ADV = no;
756 BT = no;
757 CAN = no;
758 COMEDI = no;
759 DRM_STM = lib.mkForce no;
760
761 DRM_CDNS_DSI = no;
762 DRM_CHIPONE_ICN6211 = no;
763 DRM_CHRONTEL_CH7033 = no;
764 #DRM_DISPLAY_CONNECTOR = no;
765 DRM_LONTIUM_LT8912B = no;
766 DRM_LONTIUM_LT9611 = no;
767 DRM_LONTIUM_LT9611UXC = no;
768 DRM_ITE_IT66121 = no;
769 DRM_LVDS_CODEC = no;
770 DRM_MEGACHIPS_STDPXXXX_GE_B850V3_FW = no;
771 DRM_NWL_MIPI_DSI = no;
772 DRM_NXP_PTN3460 = no;
773 DRM_PARADE_PS8622 = no;
774 DRM_PARADE_PS8640 = no;
775 DRM_SIL_SII8620 = no;
776 DRM_SII902X = no;
777 DRM_SII9234 = no;
778 DRM_SIMPLE_BRIDGE = no;
779 DRM_THINE_THC63LVD1024 = no;
780 DRM_TOSHIBA_TC358762 = no;
781 DRM_TOSHIBA_TC358764 = no;
782 DRM_TOSHIBA_TC358767 = no;
783 DRM_TOSHIBA_TC358768 = no;
784 DRM_TOSHIBA_TC358775 = no;
785 DRM_TI_TFP410 = no;
786 DRM_TI_SN65DSI83 = no;
787 DRM_TI_SN65DSI86 = no;
788 DRM_TI_TPD12S015 = no;
789 DRM_ANALOGIX_ANX6345 = no;
790 DRM_ANALOGIX_ANX78XX = no;
791 DRM_ANALOGIX_DP = no;
792 DRM_ANALOGIX_ANX7625 = no;
793 DRM_I2C_ADV7511 = no;
794 DRM_I2C_ADV7511_CEC = no;
795 DRM_CDNS_MHDP8546 = no;
796 DRM_DW_HDMI = no;
797 DRM_DW_HDMI_AHB_AUDIO = no;
798 DRM_DW_HDMI_I2S_AUDIO = no;
799 DRM_DW_HDMI_CEC = no;
800 DRM_STI = no;
801 DRM_IMX = no;
802 DRM_IMX_PARALLEL_DISPLAY = no;
803 DRM_IMX_TVE = no;
804 DRM_IMX_LDB = no;
805 DRM_IMX_HDMI = no;
806 DRM_ETNAVIV = no;
807 DRM_ETNAVIV_THERMAL = no;
808 DRM_MXS = no;
809 DRM_MXSFB = no;
810 DRM_ARCPGU = no;
811 DRM_GM12U320 = no;
812 TINYDRM_HX8357D = no;
813 TINYDRM_ILI9225 = no;
814 TINYDRM_ILI9341 = no;
815 TINYDRM_ILI9486 = no;
816 TINYDRM_MI0283QT = no;
817 TINYDRM_REPAPER = no;
818 TINYDRM_ST7586 = no;
819 TINYDRM_ST7735R = no;
820 DRM = module;
821 DRM_BRIDGE = yes;
822 DRM_EXPORT_FOR_TESTS = no;
823 DRM_FBDEV_EMULATION = yes;
824 DRM_GUD = no;
825 DRM_KMS_FB_HELPER = yes;
826 DRM_KMS_HELPER = module;
827 DRM_LIB_RANDOM = no;
828 DRM_LIMA = module; # TODO: enable for the Mali 400 of the Cubieboard 2
829 DRM_LVDS_ENCODER = module;
830 DRM_NOUVEAU = no;
831 DRM_MCDE = no;
832 DRM_PANEL = yes;
833 DRM_PANEL_BRIDGE = yes;
834 DRM_PANEL_LVDS = module;
835 DRM_PANEL_ORIENTATION_QUIRKS = no;
836 DRM_PANFROST = no; # Not for the hardware of the Cubieboard 2not supported b
837 DRM_PL111 = no;
838 DRM_SCHED = module;
839 DRM_TIDSS = no;
840 DRM_TVE200 = no;
841 VIDEOMODE_HELPERS = yes;
842 FB = yes;
843 FB_CMDLINE = yes;
844 FB_NOTIFY = yes;
845 FB_CFB_FILLRECT = yes;
846 FB_CFB_COPYAREA = yes;
847 FB_CFB_IMAGEBLIT = yes;
848 FB_MODE_HELPERS = yes;
849 FB_TILEBLITTING = yes;
850 FB_SIMPLE = yes;
851
852 DUMMY_CONSOLE = yes;
853 FRAMEBUFFER_CONSOLE = yes;
854 FRAMEBUFFER_CONSOLE_DETECT_PRIMARY = yes;
855 FRAMEBUFFER_CONSOLE_ROTATION = yes;
856 FRAMEBUFFER_CONSOLE_DEFERRED_TAKEOVER = yes;
857
858 BACKLIGHT_LCD_SUPPORT = yes;
859 LCD_CLASS_DEVICE = module;
860 LCD_PLATFORM = module;
861 BACKLIGHT_CLASS_DEVICE = module;
862 BACKLIGHT_GENERIC = module;
863 BACKLIGHT_PWM = module;
864 BACKLIGHT_GPIO = module;
865
866 INFINIBAND = lib.mkForce no;
867 INPUT_TOUCHSCREEN = no;
868 MEDIA_ANALOG_TV_SUPPORT = lib.mkForce no;
869 MEDIA_DIGITAL_TV_SUPPORT = lib.mkForce no;
870 MEDIA_TUNER = no;
871 MPLS = no;
872 MPTCP = lib.mkForce no;
873 NFC = no;
874 NF_TABLES_BRIDGE = lib.mkForce no;
875 NVME = no;
876 OPENVSWITCH = no;
877 PARAVIRT = lib.mkForce no;
878 POWER_SUPPLY = no;
879 USB_GSPCA = lib.mkForce no;
880 VIDEO_STK1160_COMMON = lib.mkForce no;
881 XEN = lib.mkForce no;
882 #NVME_CORE = no;
883 };
884 features.debug = false;
885 #ignoreConfigErrors = true;
886 };
887 }));
888 boot.initrd.availableKernelModules = lib.mkForce [
889 "mmc_block"
890 "usbhid"
891 "hid_generic"
892 "hid_microsoft"
893 ];
894 }