1 { pkgs, lib, config, host, modulesPath, ... }:
4 "${modulesPath}/installer/sd-card/sd-image.nix"
7 # Too CPU hungry for this hardware, for too little Mio saved
8 nix.autoOptimiseStore = false;
10 powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
12 boot.supportedFilesystems = [
18 #"zfs" # ZFS tools coredump with SIGSEGV
23 # The serial ports listed here are:
24 # - ttyS0: for Tegra (Jetson TK1)
25 # - ttymxc0: for i.MX6 (Wandboard)
26 # - ttyAMA0: for Allwinner (pcDuino3 Nano) and QEMU's -machine virt
27 # - ttyO0: for OMAP (BeagleBone Black)
28 # - ttySAC2: for Exynos (ODROID-XU3)
29 boot.consoleLogLevel = lib.mkDefault 7;
31 "console=ttyS0,115200n8"
32 "console=ttymxc0,115200n8"
33 "console=ttyAMA0,115200n8"
34 "console=ttyO0,115200n8"
35 "console=ttySAC2,115200n8"
38 boot.kernelPatches = [
40 name = "0001-core_pattern-fix-too-small-CORENAME_MAX_SIZE";
41 patch = ../../../nixpkgs/patches/linux/0001-core_pattern-fix-too-small-CORENAME_MAX_SIZE.patch;
47 #nixpkgs.config.allowUnfree = true;
48 nixpkgs.crossSystem = lib.systems.examples.armv7l-hf-multiplatform;
51 # https://linux-sunxi.org/Mali_Open_Source_Driver#Configuration_and_Build
52 mesa = super.mesa.override {
54 eglPlatforms = ["x11"];
55 enableGalliumNine = false;
56 galliumDrivers = ["lima" "panfrost" "kmsro" "swrast"];
61 linuxPackages_latest_Cubieboard2 = super.linuxPackages_latest.extend (kfinal: ksuper: {
62 kernel = ksuper.kernel.override {
63 defconfig = "sunxi_defconfig";
64 structuredExtraConfig = with lib.kernel; {
65 # Workaround https://github.com/NixOS/nixpkgs/pull/141942#issuecomment-954301443
66 DEBUG_INFO = lib.mkForce no;
67 DEBUG_INFO_BTF = lib.mkForce no;
72 TORTURE_TEST = no; # TODO: check if it's possible
73 USB_SERIAL_CH341 = module;
74 USB_SERIAL_PL2303 = module;
75 REGULATOR = lib.mkForce no;
82 EXT4_USE_FOR_EXT2 = yes;
91 DRM_DISPLAY_CONNECTOR = module;
92 FB_SIMPLE = lib.mkForce module;
93 NET_SCH_CODEL = module;
94 NET_SCH_FQ_CODEL = module;
98 # Not built in the Cubieboard2, require an USB dongle
102 LIB80211_CRYPT_CCMP = module;
104 MAC80211_HWSIM = module;
108 SND_SOC_ADI_AXI_I2S = no;
109 SND_SOC_ADI_AXI_SPDIF = no;
110 SND_SOC_AMD_ACP = no;
111 SND_SOC_AMD_CZ_RT5645_MACH = no;
113 SND_SOC_MIKROE_PROTO = no;
114 SND_BCM63XX_I2S_WHISTLER = no;
115 SND_DESIGNWARE_I2S = no;
116 SND_SOC_FSL_ASRC = no;
117 SND_SOC_FSL_SAI = no;
118 SND_SOC_FSL_MQS = no;
119 SND_SOC_FSL_AUDMIX = no;
120 SND_SOC_FSL_SSI = no;
121 SND_SOC_FSL_SPDIF = no;
122 SND_SOC_FSL_ESAI = no;
123 SND_SOC_FSL_MICFIL = no;
124 SND_SOC_FSL_EASRC = no;
125 SND_SOC_FSL_XCVR = no;
126 SND_SOC_FSL_RPMSG = no;
127 SND_SOC_IMX_AUDMUX = no;
128 SND_I2S_HI6210_I2S = no;
129 SND_SOC_MTK_BTCVSD = no;
130 SND_SOC_XILINX_I2S = no;
131 SND_SOC_XILINX_AUDIO_FORMATTER = no;
132 SND_SOC_XILINX_SPDIF = no;
133 SND_SOC_XTFPGA_I2S = no;
134 SND_SOC_AC97_CODEC = no;
135 SND_SOC_ADAU_UTILS = no;
136 SND_SOC_ADAU1372 = no;
137 SND_SOC_ADAU1372_I2C = no;
138 SND_SOC_ADAU1372_SPI = no;
139 SND_SOC_ADAU1701 = no;
140 SND_SOC_ADAU17X1 = no;
141 SND_SOC_ADAU1761 = no;
142 SND_SOC_ADAU1761_I2C = no;
143 SND_SOC_ADAU1761_SPI = no;
144 SND_SOC_ADAU7002 = no;
145 SND_SOC_ADAU7118 = no;
146 SND_SOC_ADAU7118_HW = no;
147 SND_SOC_ADAU7118_I2C = no;
156 SND_SOC_ALC5623 = no;
157 SND_SOC_BD28623 = no;
160 SND_SOC_CS35L32 = no;
161 SND_SOC_CS35L33 = no;
162 SND_SOC_CS35L34 = no;
163 SND_SOC_CS35L35 = no;
164 SND_SOC_CS35L36 = no;
165 SND_SOC_CS42L42 = no;
166 SND_SOC_CS42L51 = no;
167 SND_SOC_CS42L51_I2C = no;
168 SND_SOC_CS42L52 = no;
169 SND_SOC_CS42L56 = no;
170 SND_SOC_CS42L73 = no;
175 SND_SOC_CS4271_I2C = no;
176 SND_SOC_CS4271_SPI = no;
177 SND_SOC_CS42XX8 = no;
178 SND_SOC_CS42XX8_I2C = no;
179 SND_SOC_CS43130 = no;
182 SND_SOC_CS53L30 = no;
183 SND_SOC_CX2072X = no;
186 SND_SOC_HDMI_CODEC = no;
191 SND_SOC_ES8328_I2C = no;
192 SND_SOC_ES8328_SPI = no;
194 SND_SOC_INNO_RK3036 = no;
195 SND_SOC_MAX98088 = no;
196 SND_SOC_MAX98357A = no;
197 SND_SOC_MAX98504 = no;
198 SND_SOC_MAX9867 = no;
199 SND_SOC_MAX98927 = no;
200 SND_SOC_MAX98373 = no;
201 SND_SOC_MAX98373_I2C = no;
202 SND_SOC_MAX98373_SDW = no;
203 SND_SOC_MAX98390 = no;
204 SND_SOC_MAX9860 = no;
205 SND_SOC_MSM8916_WCD_ANALOG = no;
206 SND_SOC_MSM8916_WCD_DIGITAL = no;
207 SND_SOC_PCM1681 = no;
208 SND_SOC_PCM1789 = no;
209 SND_SOC_PCM1789_I2C = no;
210 SND_SOC_PCM179X = no;
211 SND_SOC_PCM179X_I2C = no;
212 SND_SOC_PCM179X_SPI = no;
213 SND_SOC_PCM186X = no;
214 SND_SOC_PCM186X_I2C = no;
215 SND_SOC_PCM186X_SPI = no;
216 SND_SOC_PCM3060 = no;
217 SND_SOC_PCM3060_I2C = no;
218 SND_SOC_PCM3060_SPI = no;
219 SND_SOC_PCM3168A = no;
220 SND_SOC_PCM3168A_I2C = no;
221 SND_SOC_PCM3168A_SPI = no;
222 SND_SOC_PCM5102A = no;
223 SND_SOC_PCM512x = no;
224 SND_SOC_PCM512x_I2C = no;
225 SND_SOC_PCM512x_SPI = no;
229 SND_SOC_RT1308_SDW = no;
230 SND_SOC_RT1316_SDW = no;
237 SND_SOC_RT5682_SDW = no;
239 SND_SOC_RT700_SDW = no;
241 SND_SOC_RT711_SDW = no;
242 SND_SOC_RT711_SDCA_SDW = no;
244 SND_SOC_RT715_SDW = no;
245 SND_SOC_RT715_SDCA_SDW = no;
246 SND_SOC_SGTL5000 = no;
247 SND_SOC_SIGMADSP = no;
248 SND_SOC_SIGMADSP_I2C = no;
249 SND_SOC_SIGMADSP_REGMAP = no;
250 SND_SOC_SIMPLE_AMPLIFIER = no;
251 SND_SOC_SIMPLE_MUX = no;
253 SND_SOC_SSM2305 = no;
254 SND_SOC_SSM2518 = no;
255 SND_SOC_SSM2602 = no;
256 SND_SOC_SSM2602_SPI = no;
257 SND_SOC_SSM2602_I2C = no;
258 SND_SOC_SSM4567 = no;
261 SND_SOC_STI_SAS = no;
262 SND_SOC_TAS2552 = no;
263 SND_SOC_TAS2562 = no;
264 SND_SOC_TAS2764 = no;
265 SND_SOC_TAS2770 = no;
266 SND_SOC_TAS5086 = no;
267 SND_SOC_TAS571X = no;
268 SND_SOC_TAS5720 = no;
269 SND_SOC_TAS6424 = no;
270 SND_SOC_TDA7419 = no;
271 SND_SOC_TFA9879 = no;
272 SND_SOC_TFA989X = no;
273 SND_SOC_TLV320AIC23 = no;
274 SND_SOC_TLV320AIC23_I2C = no;
275 SND_SOC_TLV320AIC23_SPI = no;
276 SND_SOC_TLV320AIC31XX = no;
277 SND_SOC_TLV320AIC32X4 = no;
278 SND_SOC_TLV320AIC32X4_I2C = no;
279 SND_SOC_TLV320AIC32X4_SPI = no;
280 SND_SOC_TLV320AIC3X = no;
281 SND_SOC_TLV320AIC3X_I2C = no;
282 SND_SOC_TLV320AIC3X_SPI = no;
283 SND_SOC_TLV320ADCX140 = no;
284 SND_SOC_TS3A227E = no;
285 SND_SOC_TSCS42XX = no;
286 SND_SOC_TSCS454 = no;
287 SND_SOC_UDA1334 = no;
288 SND_SOC_WCD9335 = no;
289 SND_SOC_WCD_MBHC = no;
290 SND_SOC_WCD934X = no;
291 SND_SOC_WCD938X = no;
292 SND_SOC_WCD938X_SDW = no;
308 SND_SOC_WM8804_I2C = no;
309 SND_SOC_WM8804_SPI = no;
317 SND_SOC_WSA881X = no;
318 SND_SOC_ZL38060 = no;
319 SND_SOC_MAX9759 = no;
323 SND_SOC_NAU8315 = no;
324 SND_SOC_NAU8540 = no;
325 SND_SOC_NAU8810 = no;
326 SND_SOC_NAU8822 = no;
327 SND_SOC_NAU8824 = no;
328 SND_SOC_TPA6130A2 = no;
329 SND_SOC_LPASS_WSA_MACRO = no;
330 SND_SOC_LPASS_VA_MACRO = no;
331 SND_SOC_LPASS_RX_MACRO = no;
332 SND_SOC_LPASS_TX_MACRO = no;
333 SND_SIMPLE_CARD_UTILS = no;
334 SND_SIMPLE_CARD = no;
335 SND_AUDIO_GRAPH_CARD = no;
342 TCP_CONG_BBR = module;
344 #PPP_MULTILINK = lib.mkForce no;
345 #PPP_FILTER = lib.mkForce no;
357 IPV6_ROUTER_PREF = yes;
358 IPV6_ROUTE_INFO = yes;
359 IPV6_OPTIMISTIC_DAD = yes;
362 INET6_ESP_OFFLOAD = module;
363 INET6_ESPINTCP = yes;
364 INET6_IPCOMP = module;
367 INET6_XFRM_TUNNEL = module;
368 INET6_TUNNEL = module;
372 IPV6_NDISC_NODETYPE = yes;
373 IPV6_TUNNEL = module;
374 IPV6_MULTIPLE_TABLES = yes;
377 IPV6_MROUTE_MULTIPLE_TABLES = yes;
379 IPV6_SEG6_LWTUNNEL = yes;
380 IPV6_SEG6_HMAC = yes;
381 IPV6_RPL_LWTUNNEL = yes;
382 # CONFIG_MPTCP is not set
383 # CONFIG_NETWORK_SECMARK is not set
384 NET_PTP_CLASSIFY = yes;
385 # CONFIG_NETWORK_PHY_TIMESTAMPING is not set
387 NETFILTER_ADVANCED = yes;
390 # Core Netfilter Configuration
392 NETFILTER_INGRESS = yes;
393 NETFILTER_NETLINK = module;
394 NETFILTER_FAMILY_ARP = yes;
395 NETFILTER_NETLINK_HOOK = module;
396 NETFILTER_NETLINK_ACCT = module;
397 NETFILTER_NETLINK_QUEUE = module;
398 NETFILTER_NETLINK_LOG = module;
399 NETFILTER_NETLINK_OSF = module;
400 NF_CONNTRACK = module;
401 NF_LOG_SYSLOG = module;
402 NETFILTER_CONNCOUNT = module;
403 NF_CONNTRACK_MARK = yes;
404 NF_CONNTRACK_ZONES = yes;
405 NF_CONNTRACK_PROCFS = yes;
406 NF_CONNTRACK_EVENTS = yes;
407 NF_CONNTRACK_TIMEOUT = yes;
408 NF_CONNTRACK_TIMESTAMP = yes;
409 NF_CONNTRACK_LABELS = yes;
410 NF_CT_PROTO_DCCP = yes;
411 NF_CT_PROTO_SCTP = yes;
412 NF_CT_PROTO_UDPLITE = yes;
413 # CONFIG_NF_CONNTRACK_AMANDA is not set
414 # CONFIG_NF_CONNTRACK_FTP is not set
415 # CONFIG_NF_CONNTRACK_H323 is not set
416 # CONFIG_NF_CONNTRACK_IRC is not set
417 # CONFIG_NF_CONNTRACK_NETBIOS_NS is not set
418 # CONFIG_NF_CONNTRACK_SNMP is not set
419 # CONFIG_NF_CONNTRACK_PPTP is not set
420 # CONFIG_NF_CONNTRACK_SANE is not set
421 # CONFIG_NF_CONNTRACK_SIP is not set
422 # CONFIG_NF_CONNTRACK_TFTP is not set
423 NF_CT_NETLINK = module;
424 NF_CT_NETLINK_TIMEOUT = module;
425 NF_CT_NETLINK_HELPER = module;
426 NETFILTER_NETLINK_GLUE_CT = yes;
428 NF_NAT_REDIRECT = yes;
429 NF_NAT_MASQUERADE = yes;
430 NETFILTER_SYNPROXY = module;
432 NF_TABLES_INET = yes;
433 NF_TABLES_NETDEV = yes;
436 NFT_COUNTER = module;
437 NFT_CONNLIMIT = module;
448 NFT_REJECT_INET = module;
452 NFT_FIB_INET = module;
457 NFT_SYNPROXY = module;
458 NF_DUP_NETDEV = module;
459 NFT_DUP_NETDEV = module;
460 NFT_FWD_NETDEV = module;
461 NFT_FIB_NETDEV = module;
462 NFT_REJECT_NETDEV = module;
463 # CONFIG_NF_FLOW_TABLE is not set
464 NETFILTER_XTABLES = module;
467 # Xtables combined modules
469 NETFILTER_XT_MARK = module;
470 NETFILTER_XT_CONNMARK = module;
471 NETFILTER_XT_SET = module;
476 NETFILTER_XT_TARGET_CHECKSUM = module;
477 NETFILTER_XT_TARGET_CLASSIFY = module;
478 NETFILTER_XT_TARGET_CONNMARK = module;
479 NETFILTER_XT_TARGET_CT = module;
480 NETFILTER_XT_TARGET_DSCP = module;
481 NETFILTER_XT_TARGET_HL = module;
482 NETFILTER_XT_TARGET_HMARK = module;
483 NETFILTER_XT_TARGET_IDLETIMER = module;
484 NETFILTER_XT_TARGET_LED = module;
485 NETFILTER_XT_TARGET_LOG = module;
486 NETFILTER_XT_TARGET_MARK = module;
487 NETFILTER_XT_NAT = module;
488 NETFILTER_XT_TARGET_NETMAP = module;
489 NETFILTER_XT_TARGET_NFLOG = module;
490 NETFILTER_XT_TARGET_NFQUEUE = module;
491 NETFILTER_XT_TARGET_NOTRACK = module;
492 NETFILTER_XT_TARGET_RATEEST = module;
493 NETFILTER_XT_TARGET_REDIRECT = module;
494 NETFILTER_XT_TARGET_MASQUERADE = module;
495 NETFILTER_XT_TARGET_TEE = module;
496 NETFILTER_XT_TARGET_TPROXY = module;
497 NETFILTER_XT_TARGET_TRACE = module;
498 NETFILTER_XT_TARGET_TCPMSS = module;
499 NETFILTER_XT_TARGET_TCPOPTSTRIP = module;
504 NETFILTER_XT_MATCH_ADDRTYPE = module;
505 NETFILTER_XT_MATCH_BPF = module;
506 NETFILTER_XT_MATCH_CGROUP = module;
507 NETFILTER_XT_MATCH_CLUSTER = module;
508 NETFILTER_XT_MATCH_COMMENT = module;
509 NETFILTER_XT_MATCH_CONNBYTES = module;
510 NETFILTER_XT_MATCH_CONNLABEL = module;
511 NETFILTER_XT_MATCH_CONNLIMIT = module;
512 NETFILTER_XT_MATCH_CONNMARK = module;
513 NETFILTER_XT_MATCH_CONNTRACK = module;
514 NETFILTER_XT_MATCH_CPU = module;
515 NETFILTER_XT_MATCH_DCCP = module;
516 NETFILTER_XT_MATCH_DEVGROUP = module;
517 NETFILTER_XT_MATCH_DSCP = module;
518 NETFILTER_XT_MATCH_ECN = module;
519 NETFILTER_XT_MATCH_ESP = module;
520 NETFILTER_XT_MATCH_HASHLIMIT = module;
521 NETFILTER_XT_MATCH_HELPER = module;
522 NETFILTER_XT_MATCH_HL = module;
523 NETFILTER_XT_MATCH_IPCOMP = module;
524 NETFILTER_XT_MATCH_IPRANGE = module;
525 NETFILTER_XT_MATCH_L2TP = module;
526 NETFILTER_XT_MATCH_LENGTH = module;
527 NETFILTER_XT_MATCH_LIMIT = module;
528 NETFILTER_XT_MATCH_MAC = module;
529 NETFILTER_XT_MATCH_MARK = module;
530 NETFILTER_XT_MATCH_MULTIPORT = module;
531 NETFILTER_XT_MATCH_NFACCT = module;
532 NETFILTER_XT_MATCH_OSF = module;
533 NETFILTER_XT_MATCH_OWNER = module;
534 # CONFIG_NETFILTER_XT_MATCH_POLICY is not set
535 NETFILTER_XT_MATCH_PKTTYPE = module;
536 NETFILTER_XT_MATCH_QUOTA = module;
537 NETFILTER_XT_MATCH_RATEEST = module;
538 NETFILTER_XT_MATCH_REALM = module;
539 NETFILTER_XT_MATCH_RECENT = module;
540 NETFILTER_XT_MATCH_SCTP = module;
541 NETFILTER_XT_MATCH_SOCKET = module;
542 NETFILTER_XT_MATCH_STATE = module;
543 NETFILTER_XT_MATCH_STATISTIC = module;
544 NETFILTER_XT_MATCH_STRING = module;
545 NETFILTER_XT_MATCH_TCPMSS = module;
546 NETFILTER_XT_MATCH_TIME = module;
547 NETFILTER_XT_MATCH_U32 = module;
548 # end of Core Netfilter Configuration
551 IP_SET_MAX.freeform = "256";
552 IP_SET_BITMAP_IP = module;
553 IP_SET_BITMAP_IPMAC = module;
554 IP_SET_BITMAP_PORT = module;
555 IP_SET_HASH_IP = module;
556 IP_SET_HASH_IPMARK = module;
557 IP_SET_HASH_IPPORT = module;
558 IP_SET_HASH_IPPORTIP = module;
559 IP_SET_HASH_IPPORTNET = module;
560 IP_SET_HASH_IPMAC = module;
561 IP_SET_HASH_MAC = module;
562 IP_SET_HASH_NETPORTNET = module;
563 IP_SET_HASH_NET = module;
564 IP_SET_HASH_NETNET = module;
565 IP_SET_HASH_NETPORT = module;
566 IP_SET_HASH_NETIFACE = module;
567 IP_SET_LIST_SET = module;
568 # CONFIG_IP_VS is not set
571 # IP: Netfilter Configuration
573 NF_DEFRAG_IPV4 = module;
574 NF_SOCKET_IPV4 = module;
575 NF_TPROXY_IPV4 = module;
576 NF_TABLES_IPV4 = yes;
577 NFT_REJECT_IPV4 = module;
578 NFT_DUP_IPV4 = module;
579 NFT_FIB_IPV4 = module;
580 # CONFIG_NF_TABLES_ARP is not set
581 NF_DUP_IPV4 = module;
582 # CONFIG_NF_LOG_ARP is not set
583 # CONFIG_NF_LOG_IPV4 is not set
584 NF_REJECT_IPV4 = module;
585 IP_NF_IPTABLES = module;
586 IP_NF_MATCH_AH = module;
587 IP_NF_MATCH_ECN = module;
588 IP_NF_MATCH_RPFILTER = module;
589 IP_NF_MATCH_TTL = module;
590 IP_NF_FILTER = module;
591 IP_NF_TARGET_REJECT = module;
592 IP_NF_TARGET_SYNPROXY = module;
594 IP_NF_TARGET_MASQUERADE = module;
595 IP_NF_TARGET_NETMAP = module;
596 IP_NF_TARGET_REDIRECT = module;
597 IP_NF_MANGLE = module;
598 IP_NF_TARGET_CLUSTERIP = module;
599 IP_NF_TARGET_ECN = module;
600 IP_NF_TARGET_TTL = module;
601 # CONFIG_IP_NF_RAW is not set
602 # CONFIG_IP_NF_ARPTABLES is not set
603 # end of IP: Netfilter Configuration
606 # IPv6: Netfilter Configuration
608 NF_SOCKET_IPV6 = module;
609 NF_TPROXY_IPV6 = module;
610 NF_TABLES_IPV6 = yes;
611 NFT_REJECT_IPV6 = module;
612 NFT_DUP_IPV6 = module;
613 NFT_FIB_IPV6 = module;
614 NF_DUP_IPV6 = module;
615 NF_REJECT_IPV6 = module;
616 NF_LOG_IPV6 = module;
617 IP6_NF_IPTABLES = module;
618 IP6_NF_MATCH_AH = module;
619 IP6_NF_MATCH_EUI64 = module;
620 IP6_NF_MATCH_FRAG = module;
621 IP6_NF_MATCH_OPTS = module;
622 IP6_NF_MATCH_HL = module;
623 IP6_NF_MATCH_IPV6HEADER = module;
624 IP6_NF_MATCH_MH = module;
625 IP6_NF_MATCH_RPFILTER = module;
626 IP6_NF_MATCH_RT = module;
627 IP6_NF_MATCH_SRH = module;
628 IP6_NF_TARGET_HL = module;
629 IP6_NF_FILTER = module;
630 IP6_NF_TARGET_REJECT = module;
631 IP6_NF_TARGET_SYNPROXY = module;
632 IP6_NF_MANGLE = module;
635 IP6_NF_TARGET_MASQUERADE = module;
636 IP6_NF_TARGET_NPT = module;
637 # end of IPv6: Netfilter Configuration
639 NF_DEFRAG_IPV6 = module;
658 F2FS_FS = lib.mkForce no;
681 MISC_FILESYSTEMS = no;
695 STAGING = lib.mkForce no;
704 DRM_STM = lib.mkForce no;
705 DRM_PANEL = lib.mkForce no;
708 DRM_PANEL_BRIDGE = no;
710 DRM_CHIPONE_ICN6211 = no;
711 DRM_CHRONTEL_CH7033 = no;
712 #DRM_DISPLAY_CONNECTOR = no;
713 DRM_LONTIUM_LT8912B = no;
714 DRM_LONTIUM_LT9611 = no;
715 DRM_LONTIUM_LT9611UXC = no;
716 DRM_ITE_IT66121 = no;
718 DRM_MEGACHIPS_STDPXXXX_GE_B850V3_FW = no;
719 DRM_NWL_MIPI_DSI = no;
720 DRM_NXP_PTN3460 = no;
721 DRM_PARADE_PS8622 = no;
722 DRM_PARADE_PS8640 = no;
723 DRM_SIL_SII8620 = no;
726 DRM_SIMPLE_BRIDGE = no;
727 DRM_THINE_THC63LVD1024 = no;
728 DRM_TOSHIBA_TC358762 = no;
729 DRM_TOSHIBA_TC358764 = no;
730 DRM_TOSHIBA_TC358767 = no;
731 DRM_TOSHIBA_TC358768 = no;
732 DRM_TOSHIBA_TC358775 = no;
734 DRM_TI_SN65DSI83 = no;
735 DRM_TI_SN65DSI86 = no;
736 DRM_TI_TPD12S015 = no;
737 DRM_ANALOGIX_ANX6345 = no;
738 DRM_ANALOGIX_ANX78XX = no;
739 DRM_ANALOGIX_DP = no;
740 DRM_ANALOGIX_ANX7625 = no;
741 DRM_I2C_ADV7511 = no;
742 DRM_I2C_ADV7511_CEC = no;
743 DRM_CDNS_MHDP8546 = no;
745 DRM_DW_HDMI_AHB_AUDIO = no;
746 DRM_DW_HDMI_I2S_AUDIO = no;
747 DRM_DW_HDMI_CEC = no;
750 DRM_IMX_PARALLEL_DISPLAY = no;
755 DRM_ETNAVIV_THERMAL = no;
760 TINYDRM_HX8357D = no;
761 TINYDRM_ILI9225 = no;
762 TINYDRM_ILI9341 = no;
763 TINYDRM_ILI9486 = no;
764 TINYDRM_MI0283QT = no;
765 TINYDRM_REPAPER = no;
767 TINYDRM_ST7735R = no;
775 DRM_EXPORT_FOR_TESTS = no;
776 DRM_PANEL_ORIENTATION_QUIRKS = no;
780 INPUT_TOUCHSCREEN = no;
781 MEDIA_ANALOG_TV_SUPPORT = lib.mkForce no;
782 MEDIA_DIGITAL_TV_SUPPORT = lib.mkForce no;
785 MPTCP = lib.mkForce no;
787 NF_TABLES_BRIDGE = lib.mkForce no;
790 PARAVIRT = lib.mkForce no;
792 USB_GSPCA = lib.mkForce no;
793 VIDEO_STK1160_COMMON = lib.mkForce no;
794 XEN = lib.mkForce no;
797 features.debug = false;
798 #ignoreConfigErrors = true;
803 boot.cleanTmpDir = true;
804 boot.tmpOnTmpfs = lib.mkForce false;
805 # TODO: is that needed?
806 hardware.enableRedistributableFirmware = true;
808 postBuildCommands = ''
809 dd if=${pkgs.ubootCubieboard2}/u-boot-sunxi-with-spl.bin of=$img bs=1024 seek=8 conv=notrunc
811 compressImage = true;
814 populateFirmwareCommands = "";
815 populateRootCommands = ''
816 mkdir -p ./files/boot
817 ${config.boot.loader.generic-extlinux-compatible.populateCmd} -c ${config.system.build.toplevel} -d ./files/boot
820 boot.loader.grub.enable = false;
821 boot.loader.generic-extlinux-compatible.enable = true;
822 # nix -L build .#nixosConfigurations.${hostName}.config.boot.kernelPackages.kernel.configfile
823 boot.kernelPackages = lib.mkForce pkgs.linuxPackages_latest_Cubieboard2;
824 boot.initrd.availableKernelModules = lib.mkForce [