added options to build with to avoid removing and re-adding stuff

This commit is contained in:
twoneis 2024-01-13 22:06:10 +01:00
parent 90b5d970be
commit 066b65c34c
8 changed files with 81 additions and 56 deletions

5
modules/system/virt.nix Normal file
View file

@ -0,0 +1,5 @@
{ lib, config, ... }: lib.mkIf (config.withVM) {
virtualisation.libvirtd.enable = true;
programs.virt-manager.enable = true;
users.users.twoneis.extraGroups = [ "libvirtd" ];
}