Home-Assistant first try
This commit is contained in:
@ -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";
|
||||||
|
34
modules/home-assistant.nix
Normal file
34
modules/home-assistant.nix
Normal 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 = {};
|
||||||
|
# };
|
||||||
|
};
|
||||||
|
}
|
Reference in New Issue
Block a user