CrOS/hosts/WCE-Home/default.nix
2024-09-25 19:06:21 -04:00

31 lines
859 B
Nix

{lib, config, pkgs, ...}:{
imports = [
../../modules
];
networking.hostName = "WCE-Home";
networking.firewall.allowedTCPPorts = [ 8123 ];
proxmoxLXC.manageNetwork = true;
virtualisation.oci-containers = {
backend = "podman";
containers.homeassistant = {
volumes = [ "home-assistant:/home/ha/ha-config" ];
environment.TZ = "America/New_York";
image = "ghcr.io/home-assistant/home-assistant:stable";
extraOptions = [
"--network=host"
"--device=/dev/ttyACM0:/dev/ttyACM0"
];
};
};
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
packages.gui.enable = false;
packages.wayland.enable = false;
packages.programming.enable = false;
users.crow.enable = false;
users.ha.enable = true;
}