I am batman
This commit is contained in:
37
modules/virtualization/vm.nix
Normal file
37
modules/virtualization/vm.nix
Normal file
@@ -0,0 +1,37 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
qemu
|
||||
libvirt
|
||||
uefi-run
|
||||
lxc
|
||||
swtpm
|
||||
bottles
|
||||
dosfstools
|
||||
virt-manager
|
||||
virt-viewer
|
||||
dnsmasq
|
||||
bridge-utils
|
||||
ebtables
|
||||
iptables
|
||||
];
|
||||
|
||||
virtualisation = {
|
||||
libvirtd = {
|
||||
enable = true;
|
||||
qemu.runAsRoot = false;
|
||||
};
|
||||
};
|
||||
|
||||
users.groups.libvirtd.members = [ "cody" ]; # Replace "cody" with your username
|
||||
|
||||
systemd.services.libvirtd.wantedBy = [ "multi-user.target" ];
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 5900 ]; # VNC for VM access
|
||||
|
||||
services.udev.packages = [ pkgs.qemu_kvm ];
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user