This commit is contained in:
2026-02-19 23:45:24 +02:00
parent ca52a4fd60
commit 2491b461a4
7 changed files with 78 additions and 6 deletions
+1
View File
@@ -19,5 +19,6 @@
# ./printing.nix
./libreoffice.nix
./hyprland-suite.nix
# ./gnuradio.nix
];
}
+29
View File
@@ -0,0 +1,29 @@
{
lib,
config,
pkgs,
...
}: let
isEnabled =
config.azos.gnuradio.enable;
in {
options.azos.gnuradio.enable = lib.mkOption {
default = true;
example = true;
type = lib.types.bool;
};
config = lib.mkIf isEnabled {
home.packages = with pkgs; [
gnuradio
uhd
gmp
boost
volk
libxcursor
cmake
pkg-config
spdlog
];
};
}
+1 -1
View File
@@ -1,3 +1,3 @@
{
imports = [./audio.nix ./bluetooth.nix ./steam.nix];
imports = [./audio.nix ./bluetooth.nix ./steam.nix ./virtualization.nix ];
}
+42
View File
@@ -0,0 +1,42 @@
{
lib,
config,
pkgs,
...
}: let
isEnabled =
config.azos.virtualization.enable;
in {
options.azos.virtualization.enable = lib.mkOption {
default = true;
example = true;
type = lib.types.bool;
};
config = lib.mkIf isEnabled {
virtualisation.libvirtd = {
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
};
};
environment.systemPackages = with pkgs; [
# QEMU (KVMaccelerated)
qemu_kvm # same as pkgs.qemu (but with KVM support explicitly enabled)
# CLI utilities
libvirt # provides virsh, virt-install, virt-manager (cli bits)
# GUI frontend
virt-manager # graphical manager (uses libvirt + spice)
virt-viewer # Spice/VNC client that virtmanager calls under the hood
];
services.spice-vdagentd.enable = true; # makes copypaste & autoresize work in Spice windows
networking.firewall.allowedTCPPorts = [ 5900 5901 ]; # Spice ports (adjust if you expose elsewhere)
networking.firewall.allowedUDPPorts = [ 5900 5901 ];
};
}