mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-22 08:04:25 +01:00
Inherit enablement of os options in hm
This commit is contained in:
parent
78d8069a88
commit
b0f3028c6e
4 changed files with 12 additions and 9 deletions
|
|
@ -1,6 +1,8 @@
|
|||
{ config, lib, ... }:
|
||||
{ config, lib, ... }@moduleArgs:
|
||||
{
|
||||
options.myConfig.virtualisation.enable = lib.mkEnableOption "";
|
||||
options.myConfig.virtualisation.enable = lib.mkEnableOption "" // {
|
||||
default = moduleArgs.osConfig.myConfig.virtualisation.enable or false;
|
||||
};
|
||||
|
||||
config = lib.mkIf config.myConfig.virtualisation.enable {
|
||||
dconf.settings."org/virt-manager/virt-manager/connections" = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue