From 11662a6938e35c71c37c124f2910b897f6fc00b8 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sat, 17 Jun 2023 18:16:47 +0000 Subject: [PATCH] [NixOS] Add home assistant to biskcomp --- nixos/machines/biskcomp.nix | 20 +++++++++++++++++++- nixos/raspberry-pi.nix | 17 ----------------- 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/nixos/machines/biskcomp.nix b/nixos/machines/biskcomp.nix index f1e67273..cd9c6379 100644 --- a/nixos/machines/biskcomp.nix +++ b/nixos/machines/biskcomp.nix @@ -5,8 +5,26 @@ ../base.nix ]; + services.xrdp.enable = true; + services.xrdp.defaultWindowManager = "startplasma-x11"; + networking.firewall.allowedTCPPorts = [ 3389 ]; + + services.home-assistant = { + enable = true; + extraComponents = [ + # Components required to complete the onboarding + "met" + "radio_browser" + ]; + config = { + # Includes dependencies for a basic setup + # https://www.home-assistant.io/integrations/default_config/ + default_config = {}; + }; + }; + networking.hostName = "biskcomp"; - hardware.video.hidpi.enable = true; + # hardware.video.hidpi.enable = true; system.stateVersion = "21.05"; } diff --git a/nixos/raspberry-pi.nix b/nixos/raspberry-pi.nix index 4af2ae7a..4d7a1ea4 100644 --- a/nixos/raspberry-pi.nix +++ b/nixos/raspberry-pi.nix @@ -8,23 +8,6 @@ hardware.raspberry-pi."4".fkms-3d.enable = true; hardware.raspberry-pi."4".audio.enable = true; - boot = { - kernelPackages = pkgs.linuxPackages_rpi4; - tmpOnTmpfs = true; - loader = { - grub.enable = false; - generic-extlinux-compatible.enable = true; - raspberryPi = { - enable = true; - version = 4; - firmwareConfig = '' - dtparam=audio=on - hdmi_drive=2 - ''; - }; - }; - }; - hardware.enableRedistributableFirmware = true; networking.useDHCP = false;