Modularized virtualization config

This commit is contained in:
Filippo Berto 2026-01-28 14:12:47 +01:00
parent 682d80668e
commit 2e96c60b85
No known key found for this signature in database
GPG key ID: F1D17F9BCEC62FBC
3 changed files with 11 additions and 1 deletions

View file

@ -357,6 +357,7 @@
./instances/thor/configuration.nix
# Additional services
./nixos/virtualization.nix
./nixos/steam.nix # Steam gaming platform
./nixos/ollama.nix # AI/LLM service
# ./nixos/ollama-ui.nix # Web UI for Ollama
@ -400,6 +401,7 @@
./instances/sif/configuration.nix
# Additional services
./nixos/virtualization.nix
./nixos/steam.nix # Steam gaming platform
./nixos/ollama.nix # AI/LLM service
# ./nixos/ollama-ui.nix # Web UI for Ollama

View file

@ -188,7 +188,7 @@
# vswitch.enable = true;
# docker.enable = true;
kvmgt.enable = true;
libvirtd = { enable = true; qemu.swtpm.enable = true; };
libvirtd.enable = true;
podman.enable = true;
# virtualbox.host.enable = true;
};

8
nixos/virtualization.nix Normal file
View file

@ -0,0 +1,8 @@
{ pkgs, ... }: {
virtualisation.libvirtd = {
qemu = {
swtpm.enable = true;
vhostUserPackages = [ pkgs.virtiofsd ];
};
};
}