mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-15 03:24:10 -05:00
31 lines
859 B
Nix
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;
|
|
}
|