mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-11 07:10:39 +02:00
feat(zackbiene): add hdmi kernel modules for latest kernel on odroid N2+
This commit is contained in:
parent
811e770cb0
commit
9028295fd5
2 changed files with 27 additions and 7 deletions
|
@ -20,13 +20,26 @@
|
||||||
|
|
||||||
boot.loader.grub.enable = false;
|
boot.loader.grub.enable = false;
|
||||||
boot.loader.generic-extlinux-compatible.enable = true;
|
boot.loader.generic-extlinux-compatible.enable = true;
|
||||||
# Technically generic-extlinux-compatible doesn't support initrd secrets
|
boot.initrd.availableKernelModules = [
|
||||||
# but we are just referring to an existing file in /run using agenix,
|
"usbhid"
|
||||||
# so it is fine to pretend that it does have proper support.
|
"usb_storage"
|
||||||
boot.loader.supportsInitrdSecrets = true;
|
# Ethernet
|
||||||
boot.initrd.availableKernelModules = ["usbhid" "usb_storage"]; # "dwmac_meson8b" "meson_dw_hdmi" "meson_drm"];
|
"dwmac_generic"
|
||||||
boot.kernelParams = ["console=ttyAML0,115200n8" "console=tty0" "loglevel=7"];
|
"dwmac_meson8b"
|
||||||
boot.kernelPackages = lib.mkForce pkgs.linuxPackages_5_15;
|
"cfg80211"
|
||||||
|
# HDMI
|
||||||
|
"snd_soc_meson_g12a_tohdmitx"
|
||||||
|
"snd_soc_meson_g12a_toacodec"
|
||||||
|
"mdio_mux_meson_g12a"
|
||||||
|
"dw_hdmi"
|
||||||
|
"meson_vdec"
|
||||||
|
"meson_dw_hdmi"
|
||||||
|
"meson_drm"
|
||||||
|
"meson_rng"
|
||||||
|
"drm"
|
||||||
|
"display_connector"
|
||||||
|
];
|
||||||
|
boot.kernelParams = ["console=ttyAML0,115200n8" "console=tty0"];
|
||||||
console.earlySetup = true;
|
console.earlySetup = true;
|
||||||
|
|
||||||
# Fails if there are not SMART devices
|
# Fails if there are not SMART devices
|
||||||
|
|
|
@ -23,6 +23,13 @@
|
||||||
libsoundtouch
|
libsoundtouch
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# TODO set lat long etc here not manually
|
||||||
|
# TODO HA and zigbee2mqtt behind nginx please
|
||||||
|
# - auth for zigbee2mqtt
|
||||||
|
# - auth for esphome dashboard
|
||||||
|
# - only allow connections from privileged LAN to HA or from vpn range
|
||||||
|
# TODO use password auth for mosquitto
|
||||||
services.mosquitto = {
|
services.mosquitto = {
|
||||||
enable = true;
|
enable = true;
|
||||||
persistence = true;
|
persistence = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue