better vm i think and vm instead of container

This commit is contained in:
twoneis 2024-09-07 16:49:22 +02:00
parent 9c93951694
commit 2288b88c8e
2 changed files with 10 additions and 1 deletions

View file

@ -5,7 +5,7 @@
games.enable = true; games.enable = true;
secureboot.enable = true; secureboot.enable = true;
extraLayout.enable = true; extraLayout.enable = true;
containers.enable = true; vm.enable = true;
stateVersion = "24.05"; stateVersion = "24.05";
hmStateVersion = "24.11"; hmStateVersion = "24.11";

View file

@ -4,5 +4,14 @@
in mkIf conf.vm.enable { in mkIf conf.vm.enable {
virtualisation.libvirtd.enable = true; virtualisation.libvirtd.enable = true;
programs.virt-manager.enable = true; programs.virt-manager.enable = true;
users.users.${conf.username}.extraGroups = [ "libvirtd" ]; users.users.${conf.username}.extraGroups = [ "libvirtd" ];
home-manager.users.${conf.username} = {
dconf.settings = {
"org/virt-manager/virt-manager/connections" = {
autoconnect = [ "qemu:///system" ];
uris = [ "qemu:///system" ];
};
};
};
} }