Skip to content

Instantly share code, notes, and snippets.

@nat-418
Last active April 16, 2023 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nat-418/2808b7d6698eb0535e29395e13528412 to your computer and use it in GitHub Desktop.
Save nat-418/2808b7d6698eb0535e29395e13528412 to your computer and use it in GitHub Desktop.
Basic NixOS configuration for desktop libvirt virtualization
# This file should be sourced in your /etc/nixos/configuration.nix
# imports declaration.
{ pkgs, ... }:
{
environment = {
systemPackages = with pkgs; [
libguestfs-with-appliance
libvirt
libvirt-glib
virt-manager
];
};
virtualisation = {
libvirtd.enable = true;
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment