From 9028295fd563060e3844a1eef4b8383ecbadc85d Mon Sep 17 00:00:00 2001 From: oddlama Date: Mon, 13 Mar 2023 20:13:06 +0100 Subject: [PATCH] feat(zackbiene): add hdmi kernel modules for latest kernel on odroid N2+ --- hosts/zackbiene/default.nix | 27 ++++++++++++++++++++------- hosts/zackbiene/home-assistant.nix | 7 +++++++ 2 files changed, 27 insertions(+), 7 deletions(-) diff --git a/hosts/zackbiene/default.nix b/hosts/zackbiene/default.nix index 368982a..1e599a6 100644 --- a/hosts/zackbiene/default.nix +++ b/hosts/zackbiene/default.nix @@ -20,13 +20,26 @@ boot.loader.grub.enable = false; boot.loader.generic-extlinux-compatible.enable = true; - # Technically generic-extlinux-compatible doesn't support initrd secrets - # but we are just referring to an existing file in /run using agenix, - # so it is fine to pretend that it does have proper support. - boot.loader.supportsInitrdSecrets = true; - boot.initrd.availableKernelModules = ["usbhid" "usb_storage"]; # "dwmac_meson8b" "meson_dw_hdmi" "meson_drm"]; - boot.kernelParams = ["console=ttyAML0,115200n8" "console=tty0" "loglevel=7"]; - boot.kernelPackages = lib.mkForce pkgs.linuxPackages_5_15; + boot.initrd.availableKernelModules = [ + "usbhid" + "usb_storage" + # Ethernet + "dwmac_generic" + "dwmac_meson8b" + "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; # Fails if there are not SMART devices diff --git a/hosts/zackbiene/home-assistant.nix b/hosts/zackbiene/home-assistant.nix index 7cefefc..3d88dde 100644 --- a/hosts/zackbiene/home-assistant.nix +++ b/hosts/zackbiene/home-assistant.nix @@ -23,6 +23,13 @@ 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 = { enable = true; persistence = true;