add home assistant

This commit is contained in:
Cyryl Płotnicki 2022-08-28 08:28:54 +01:00
parent 65d31a4721
commit 0328496a14
2 changed files with 15 additions and 7 deletions

View file

@ -7,14 +7,8 @@
./nextcloud.nix
./print-server.nix
./restic-server.nix
./home-assistant.nix
];
services.syncthing = {
enable = true;
dataDir = "/data/syncthing";
openDefaultPorts = true;
package =
inputs.nixpkgs-nixos-unstable.legacyPackages."x86_64-linux".syncthing;
};
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
networking = {
hostName = "bolty";

View file

@ -0,0 +1,14 @@
{ config, pkgs, inputs, lib, ... }: {
imports = [ ];
virtualisation.oci-containers = {
backend = "podman";
containers.homeassistant = {
volumes = [ "home-assistant:/config" ];
environment.TZ = "Europe/London";
image =
"ghcr.io/home-assistant/home-assistant:stable"; # Warning: if the tag does not change, the image will not be updated
extraOptions = [ "--network=host" ];
};
};
}