diff options
| author | Fuwn <[email protected]> | 2024-09-05 02:14:50 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-09-05 02:14:50 -0700 |
| commit | 21db2e5762854966fb735e68d001e4ab6dbbbcbf (patch) | |
| tree | abb082f3a762b9dcddb66ece6dc5cbfcd314fb9f /modules/virtualisation/libvirtd.nix | |
| parent | Bump: docker (diff) | |
| download | nixos-config-21db2e5762854966fb735e68d001e4ab6dbbbcbf.tar.xz nixos-config-21db2e5762854966fb735e68d001e4ab6dbbbcbf.zip | |
Bump
Diffstat (limited to 'modules/virtualisation/libvirtd.nix')
| -rw-r--r-- | modules/virtualisation/libvirtd.nix | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/modules/virtualisation/libvirtd.nix b/modules/virtualisation/libvirtd.nix index 4618c46..556135b 100644 --- a/modules/virtualisation/libvirtd.nix +++ b/modules/virtualisation/libvirtd.nix @@ -1,26 +1,15 @@ { pkgs, ... }: { boot.extraModprobeConfig = "options kvm_intel nested=1"; - environment.systemPackages = [ pkgs.virt-manager ]; + + environment.systemPackages = with pkgs; [ + virt-manager + virt-viewer + ]; virtualisation.libvirtd = { enable = true; - - qemu = { - package = pkgs.qemu_kvm; - runAsRoot = true; - swtpm.enable = true; - - ovmf = { - enable = true; - - packages = [ - (pkgs.OVMF.override { - secureBoot = true; - tpmSupport = true; - }).fd - ]; - }; - }; + onBoot = "ignore"; + onShutdown = "shutdown"; }; } |