dotfiles/nixos/boxes/bolty/home-assistant.nix

18 lines
344 B
Nix

{ config, pkgs, inputs, lib, ... }:
let port = 8123;
in {
imports = [ ];
networking.firewall.allowedTCPPorts = [ port ];
boot.kernelModules = [ "kvm_amd" ];
virtualisation = {
libvirtd = {
enable = true;
qemu.ovmf.enable = true;
};
};
environment.systemPackages = with pkgs; [ qemu virt-manager usbutils ];
}