mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 21:01:34 +01:00
13 lines
398 B
Nix
13 lines
398 B
Nix
{ config, lib, ... }@moduleArgs:
|
|
{
|
|
options.myConfig.virt-manager.enable = lib.mkEnableOption "" // {
|
|
default = moduleArgs.osConfig.programs.virt-manager.enable or false;
|
|
};
|
|
|
|
config = lib.mkIf config.myConfig.virt-manager.enable {
|
|
dconf.settings."org/virt-manager/virt-manager/connections" = {
|
|
autoconnect = [ "qemu:///system" ];
|
|
uris = [ "qemu:///system" ];
|
|
};
|
|
};
|
|
}
|