From 8122b353256f13a9383c2004b26145ff13dd1ab8 Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Wed, 12 Jul 2023 11:49:36 +0100 Subject: [PATCH] Virtualbox -> libvirt --- nixos_modules/bertof_user.nix | 2 +- odin/common_configuration.nix | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/nixos_modules/bertof_user.nix b/nixos_modules/bertof_user.nix index bbbcb38..fc9996a 100644 --- a/nixos_modules/bertof_user.nix +++ b/nixos_modules/bertof_user.nix @@ -1,7 +1,7 @@ { users.users.bertof = { isNormalUser = true; - extraGroups = [ "network" "networkmanager" "wheel" "tss" ]; + extraGroups = [ "libvirtd" "kvm" "network" "networkmanager" "wheel" "tss" ]; openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAhxOjo9Ac9hVd3eOR56F6sClUMUh1m7VpcmzA18dslj bertof@odin" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO7mcf8fbMo1eXqSJeVFWaweB+JOU+67dFuf8laZKZZG bertof@thor" diff --git a/odin/common_configuration.nix b/odin/common_configuration.nix index 195dded..6f87cf0 100644 --- a/odin/common_configuration.nix +++ b/odin/common_configuration.nix @@ -299,9 +299,12 @@ with lib; { virtualisation = { docker.enable = true; kvmgt.enable = true; - libvirtd.enable = true; + libvirtd = { + enable = true; + qemu.swtpm.enable = true; + }; podman.enable = true; - virtualbox.host.enable = true; + # virtualbox.host.enable = true; }; # Allow completion for system packages