mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-22 00:21:34 +01:00
Minor module refactors
This commit is contained in:
parent
89144e5b7a
commit
1a8333829e
4 changed files with 28 additions and 26 deletions
13
modules/home/virt-manager.nix
Normal file
13
modules/home/virt-manager.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{ 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" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue