Home-Assistant first try

This commit is contained in:
root@nixos-nas
2025-09-03 17:21:39 +00:00
parent 0032d25ba8
commit 88869f5634
2 changed files with 39 additions and 1 deletions

View File

@ -17,7 +17,10 @@ let
''; '';
in in
{ {
imports = [ ./hardware/hardware-configuration.nix ]; nixpkgs.config.permittedInsecurePackages = [
"openssl-1.1.1w"
];
imports = [ ./hardware/hardware-configuration.nix ./modules/home-assistant.nix ];
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
@ -32,6 +35,7 @@ in
networking.hostName = "nix-nas"; networking.hostName = "nix-nas";
networking.hostId = "39373132"; # via: head -c4 /etc/machine-id | od -An -tx4 networking.hostId = "39373132"; # via: head -c4 /etc/machine-id | od -An -tx4
networking.firewall.allowedTCPPorts = [ 22 80 443 8123 ];
fileSystems."/" = fileSystems."/" =
{ device = "rpool/root"; { device = "rpool/root";

View File

@ -0,0 +1,34 @@
{
services.home-assistant = {
enable = true;
extraComponents = [
# Components required to complete the onboarding
"esphome"
"homeassistant_hardware"
"zha"
"met"
"radio_browser"
"wled"
"marytts"
"mastodon"
"matter"
"mealie"
"isal"
"dhcp"
"go2rtc"
"mobile_app"
"ssdp"
"stream"
];
# opt-out from declarative configuration management
config = null;
lovelaceConfig = null;
# configure the path to your config directory
configDir = "/etc/home-assistant";
# config = {
# # Includes dependencies for a basic setup
# # https://www.home-assistant.io/integrations/default_config/
# default_config = {};
# };
};
}