Init:start-nix

This commit is contained in:
dichgrem
2025-07-22 12:18:15 +08:00
parent 7ce7214a74
commit e57cdd246c
178 changed files with 22667 additions and 1 deletions

16
modules/services/qemu.nix Normal file
View File

@@ -0,0 +1,16 @@
{
hostname,
lib,
...
}:
with lib; let
inherit (import ../../hosts/${hostname}/env.nix) QEMU-VM-Use-Case;
in {
config = mkIf QEMU-VM-Use-Case {
services = {
spice-vdagentd.enable = true;
spice-webdavd.enable = true;
};
virtualisation.libvirtd.enable = true;
};
}