OOKNET                             [ /  search the index  ]  
──────────────────────────────────────────────────────────────────────────────────────
══════════════════════════════════════════════════════════════════════════════════════
OOKNET   [ /  search  ]  
────────────────────────────────────────────────
════════════════════════════════════════════════
 
 
main @ 34 LINES
 
[ HISTORY ]  [ UP ]
 

{
  lib,
  config,
  pkgs,
  ...
}: let
  inherit (lib) mkIf;
  cfg = config.ooknet.virtualization.host;
in {
  config = mkIf cfg.enable {
    virtualisation = {
      # allow unprivileged users to pass usb devices to vm
      spiceUSBRedirection.enable = true;

      # our virtualization daemon
      libvirtd = {
        enable = true;

        qemu = {
          # by default this uses pkgs.qemu but since i do not need to emulate aarc
h64 currently i use
          # qemu_kvm which only supports the hosts system architecture.
          package = pkgs.qemu_kvm;

          # for emulating TPM
          swtpm.enable = true;

          # ensure virtiofsd is accessible to all domains
          vhostUserPackages = [pkgs.virtiofsd];
        };
      };
    };
  };
}

{
  lib,
  config,
  pkgs,
  ...
}: let
  inherit (lib) mkIf;
  cfg = config.ooknet.virtualization.host;
in {
  config = mkIf cfg.enable {
    virtualisation = {
      # allow unprivileged users to pass usb
 devices to vm
      spiceUSBRedirection.enable = true;

      # our virtualization daemon
      libvirtd = {
        enable = true;

        qemu = {
          # by default this uses pkgs.qemu b
ut since i do not need to emulate aarch64 cu
rrently i use
          # qemu_kvm which only supports the
 hosts system architecture.
          package = pkgs.qemu_kvm;

          # for emulating TPM
          swtpm.enable = true;

          # ensure virtiofsd is accessible t
o all domains
          vhostUserPackages = [pkgs.virtiofs
d];
        };
      };
    };
  };
}
 
──────────────────────────────────────────────────────────────────────────────────────
OOKNET
────────────────────────────────────────────────
OOKNET