Modularized virtualization config
This commit is contained in:
parent
682d80668e
commit
2e96c60b85
3 changed files with 11 additions and 1 deletions
|
|
@ -357,6 +357,7 @@
|
||||||
./instances/thor/configuration.nix
|
./instances/thor/configuration.nix
|
||||||
|
|
||||||
# Additional services
|
# Additional services
|
||||||
|
./nixos/virtualization.nix
|
||||||
./nixos/steam.nix # Steam gaming platform
|
./nixos/steam.nix # Steam gaming platform
|
||||||
./nixos/ollama.nix # AI/LLM service
|
./nixos/ollama.nix # AI/LLM service
|
||||||
# ./nixos/ollama-ui.nix # Web UI for Ollama
|
# ./nixos/ollama-ui.nix # Web UI for Ollama
|
||||||
|
|
@ -400,6 +401,7 @@
|
||||||
./instances/sif/configuration.nix
|
./instances/sif/configuration.nix
|
||||||
|
|
||||||
# Additional services
|
# Additional services
|
||||||
|
./nixos/virtualization.nix
|
||||||
./nixos/steam.nix # Steam gaming platform
|
./nixos/steam.nix # Steam gaming platform
|
||||||
./nixos/ollama.nix # AI/LLM service
|
./nixos/ollama.nix # AI/LLM service
|
||||||
# ./nixos/ollama-ui.nix # Web UI for Ollama
|
# ./nixos/ollama-ui.nix # Web UI for Ollama
|
||||||
|
|
|
||||||
|
|
@ -188,7 +188,7 @@
|
||||||
# vswitch.enable = true;
|
# vswitch.enable = true;
|
||||||
# docker.enable = true;
|
# docker.enable = true;
|
||||||
kvmgt.enable = true;
|
kvmgt.enable = true;
|
||||||
libvirtd = { enable = true; qemu.swtpm.enable = true; };
|
libvirtd.enable = true;
|
||||||
podman.enable = true;
|
podman.enable = true;
|
||||||
# virtualbox.host.enable = true;
|
# virtualbox.host.enable = true;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
8
nixos/virtualization.nix
Normal file
8
nixos/virtualization.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
{ pkgs, ... }: {
|
||||||
|
virtualisation.libvirtd = {
|
||||||
|
qemu = {
|
||||||
|
swtpm.enable = true;
|
||||||
|
vhostUserPackages = [ pkgs.virtiofsd ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue