1 Commits
Author SHA1 Message Date
eli 4fa589cc83 Added better configs for docker containers, and imports for all modules 2023-09-13 03:48:28 +03:00
3 changed files with 41 additions and 6 deletions
+6 -3
View File
@@ -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"
+14 -3
View File
@@ -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"
+21
View File
@@ -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"
];
};
}