add home assistant
This commit is contained in:
parent
65d31a4721
commit
0328496a14
2 changed files with 15 additions and 7 deletions
|
@ -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";
|
||||
|
|
14
nixos/boxes/bolty/home-assistant.nix
Normal file
14
nixos/boxes/bolty/home-assistant.nix
Normal 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" ];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue