Add home assitant to loki

This commit is contained in:
Filippo Berto 2021-12-06 20:34:50 +01:00
parent dff588dc79
commit a1e0d27c17

View file

@ -208,6 +208,7 @@
445 # SAMBA 445 # SAMBA
139 # SAMBA 139 # SAMBA
5357 # SAMBA-WSDD 5357 # SAMBA-WSDD
8123 # HOME ASSISTANT
8384 # SYNCTHING 8384 # SYNCTHING
8385 # SYNCTHING 8385 # SYNCTHING
]; ];
@ -225,6 +226,21 @@
libvirtd.enable = true; libvirtd.enable = true;
podman.enable = true; podman.enable = true;
virtualbox.host.enable = true; virtualbox.host.enable = true;
oci-containers.containers = {
hass = {
image = "ghcr.io/home-assistant/home-assistant:stable";
environment = {
TZ = "Europe/Rome";
};
extraOptions = [ "--privileged" "--network=host" ];
ports = [ "8123:8123" ];
volumes = [
"/var/lib/hass:/config"
"/mnt/raid/condiviso:/media"
];
};
};
}; };
environment.systemPackages = with pkgs; [ htop kakoune vim tmux ]; environment.systemPackages = with pkgs; [ htop kakoune vim tmux ];
@ -240,5 +256,5 @@
"experimental-features = nix-command flakes"; "experimental-features = nix-command flakes";
gc.automatic = true; gc.automatic = true;
}; };
system.stateVersion = "21.05"; system.stateVersion = "21.11";
} }