virt-manager: init
This commit is contained in:
parent
02182f5134
commit
1f5952fffa
2 changed files with 18 additions and 0 deletions
|
@ -46,6 +46,7 @@ let
|
|||
"cups"
|
||||
"lp"
|
||||
])
|
||||
++ (optional config.programs.virt-manager.enable "libvirtd")
|
||||
++ (optional (withDocker && !withPodman) "docker")
|
||||
++ (optional withPodman "podman");
|
||||
shell = "${pkgs.zsh}/bin/zsh";
|
||||
|
|
17
services/virt-manager.nix
Normal file
17
services/virt-manager.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
with lib;
|
||||
mkIf (elem "virt-manager" config.machine.services) {
|
||||
virtualisation.libvirtd.enable = true;
|
||||
programs.virt-manager.enable = true;
|
||||
dconf.settings = {
|
||||
"org/virt-manager/virt-manager/connections" = {
|
||||
autoconnect = [ "qemu:///system" ];
|
||||
uris = [ "qemu:///system" ];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue