Many changes by GLM
This commit is contained in:
@@ -17,12 +17,12 @@ in {
|
||||
services = {
|
||||
pipewire = {
|
||||
enable = true;
|
||||
audio.enable = true;
|
||||
pulse.enable = true;
|
||||
alsa = {
|
||||
audio.enable = true;
|
||||
pulse.enable = true;
|
||||
alsa = {
|
||||
enable = true;
|
||||
support32Bit = true;
|
||||
};
|
||||
};
|
||||
jack.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
imports = [./audio.nix ./bluetooth.nix ./steam.nix ./virtualization.nix ];
|
||||
imports = [./audio.nix ./bluetooth.nix ./steam.nix ./virtualization.nix];
|
||||
}
|
||||
|
||||
@@ -15,28 +15,26 @@ in {
|
||||
|
||||
config = lib.mkIf isEnabled {
|
||||
virtualisation.libvirtd = {
|
||||
enable = true; # start / run libvirtd as a system service
|
||||
enable = true; # start / run libvirtd as a system service
|
||||
# optional: expose the default NAT network (virbr0) – libvirtd creates it
|
||||
# automatically when the daemon is on, but we make sure the bridge is
|
||||
# allowed through the firewall.
|
||||
qemu = {
|
||||
swtpm.enable = true; # (optional) enable software TPM for guests
|
||||
swtpm.enable = true; # (optional) enable software TPM for guests
|
||||
};
|
||||
};
|
||||
environment.systemPackages = with pkgs; [
|
||||
# QEMU (KVM‑accelerated)
|
||||
qemu_kvm # same as pkgs.qemu (but with KVM support explicitly enabled)
|
||||
qemu_kvm # same as pkgs.qemu (but with KVM support explicitly enabled)
|
||||
# CLI utilities
|
||||
libvirt # provides virsh, virt-install, virt-manager (cli bits)
|
||||
libvirt # provides virsh, virt-install, virt-manager (cli bits)
|
||||
# GUI front‑end
|
||||
virt-manager # graphical manager (uses libvirt + spice)
|
||||
virt-viewer # Spice/VNC client that virt‑manager calls under the hood
|
||||
virt-manager # graphical manager (uses libvirt + spice)
|
||||
virt-viewer # Spice/VNC client that virt‑manager calls under the hood
|
||||
];
|
||||
|
||||
|
||||
services.spice-vdagentd.enable = true; # makes copy‑paste & auto‑resize work in Spice windows
|
||||
networking.firewall.allowedTCPPorts = [ 5900 5901 ]; # Spice ports (adjust if you expose elsewhere)
|
||||
networking.firewall.allowedUDPPorts = [ 5900 5901 ];
|
||||
|
||||
services.spice-vdagentd.enable = true; # makes copy‑paste & auto‑resize work in Spice windows
|
||||
networking.firewall.allowedTCPPorts = [5900 5901]; # Spice ports (adjust if you expose elsewhere)
|
||||
networking.firewall.allowedUDPPorts = [5900 5901];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user