added minecraft server

This commit is contained in:
2024-11-28 11:09:08 -06:00
parent ea597e8f6e
commit f0af39b19a
75 changed files with 221 additions and 69 deletions

View File

@@ -9,5 +9,6 @@
./pihole
./nextcloud
./ntfy
./homeassistant
];
}

View File

@@ -0,0 +1,26 @@
{ config, lib, ... }: {
options.sysconfig.opts.virtualization.homeassistant.enable = lib.mkOption {
type = lib.types.bool;
default = false;
};
config = lib.mkIf config.sysconfig.opts.virtualization.homeassistant.enable {
virtualisation.oci-containers = {
backend = "docker";
containers.homeassistant = {
volumes = [
"/ssd1/Home-Assistant/data:/config"
"/run/dbus:/run/dbus:ro"
];
environment.TZ = "America/Chicago";
image = "ghcr.io/home-assistant/home-assistant:stable"; # Warning: if the tag does not change, the image will not be updated
extraOptions = [
"--network=host"
#"--device=/dev/ttyACM0:/dev/ttyACM0" # Use this for external devices e.g. zigbee
];
};
};
};
}