homelab/modules/virtual/default.nix
2025-08-06 00:18:58 +02:00

27 lines
455 B
Nix

{ lib
, config
, ...
}:
with lib;
let
cfg = config.virtualMachines;
in
{
options.virtualMachines = {
enable = mkEnableOption "Enable Module";
vmHost = mkOption {
type = with types; attrsOf (submodule (import ./vm-options.nix { inherit cfg; }));
default = { };
example = literalExpression ''
Todo
'';
description = ''
Declaration d'une vm
'';
};
};
config = mkIf cfg.enable { };
}