mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-11 17:54:08 -05:00
28 lines
753 B
Nix
28 lines
753 B
Nix
{lib, config, pkgs, ...}:{
|
|
imports = [
|
|
../../modules
|
|
];
|
|
|
|
networking.hostName = "WCE-Home";
|
|
networking.firewall.allowedTCPPorts = [ 8123 ];
|
|
|
|
virtualisation.oci-containers = {
|
|
backend = "podman";
|
|
containers.homeassistant = {
|
|
volumes = [ "home-assistant:/config" ];
|
|
environment.TZ = "America/New_York";
|
|
image = "ghcr.io/home-assistant/home-assistant:stable";
|
|
extraOptions = [
|
|
"--network=host";
|
|
"--device=/dev/ttyACM0:/dev/ttyACM0";
|
|
];
|
|
};
|
|
};
|
|
|
|
packages.gui.enable = false;
|
|
packages.wayland.enable = false;
|
|
packages.programming.enable = false;
|
|
|
|
users.crow.enable = false;
|
|
users.ha.enable = true;
|
|
}
|