Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4fa589cc83 |
@@ -1,11 +1,14 @@
|
||||
{ config, pkgs, ... }:
|
||||
let vars = import ../../vars.nix; in
|
||||
let
|
||||
vars = import ./vars.nix;
|
||||
in
|
||||
|
||||
{
|
||||
# Home Assistant
|
||||
virtualisation.oci-containers.containers."homeassistant" = {
|
||||
autoStart = true;
|
||||
volumes = [ "home-assistant:/config" ];
|
||||
environment.TZ = vars.tz;
|
||||
volumes = [ "/home/hass:/config:rw" ]; # Remember to create the folder in home.
|
||||
environment.TZ = "Europe/Athens";
|
||||
image = "ghcr.io/home-assistant/home-assistant:stable"; # Warning: if the tag does not change, the image will not be updated
|
||||
extraOptions = [
|
||||
"--network=host"
|
||||
|
||||
@@ -1,11 +1,22 @@
|
||||
{ config, pkgs, ... }:
|
||||
let vars = import ../../vars.nix; in
|
||||
let
|
||||
vars = import ./vars.nix; # create your vars and edit this environment var config.
|
||||
in
|
||||
|
||||
{
|
||||
# Home Assistant
|
||||
virtualisation.oci-containers.containers."huginn" = {
|
||||
autoStart = true;
|
||||
volumes = [ "/home/huginn/mysql-data:/var/lib/mysql" ];
|
||||
environment.TZ = vars.tz;
|
||||
volumes = [ "/home/huginn/mysql-data:/var/lib/mysql" ]; # Remember to create a folder for your vol.
|
||||
environment.TZ = "Europe/Athens";
|
||||
environment.EMAIL_FROM_ADDRESS = "foobar@gmx.de";
|
||||
environment.SMTP_DOMAIN = "gmx.de";
|
||||
environment.SMTP_USER_NAME = "foobar@gmx.de";
|
||||
environment.SMTP_PASSWORD = "321abc";
|
||||
environment.SMPT_SERVER = "mail.gmx.net";
|
||||
environment.SMTP_PORT = "465";
|
||||
environment.SMTP_AUTHENTICATION = "login";
|
||||
environment.SMTP_ENABLE_STARTTLS_AUTO = "true";
|
||||
image = "ghcr.io/huginn/huginn:latest"; # Warning: if the tag does not change, the image will not be updated
|
||||
extraOptions = [
|
||||
"--network=host"
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
{ config, pkgs, ... }:
|
||||
let
|
||||
vars = import ./vars.nix;
|
||||
in
|
||||
|
||||
{
|
||||
# Mosquitto for HASS
|
||||
virtualisation.oci-containers.containers."mosquitto" = {
|
||||
autoStart = true;
|
||||
volumes = [ "/home/mosquitto/config:/mosquitto/config:rw" "/home/mosquitto/data:/mosquitto/data:rw" ];
|
||||
environment.TZ = "Europe/Athens";
|
||||
ports = [
|
||||
"1883:1883"
|
||||
"9001:9001" ];
|
||||
image = "eclipse-mosquitto"; # Warning: if the tag does not change, the image will not be updated
|
||||
extraOptions = [
|
||||
"--network=host"
|
||||
"--privileged"
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user