27 lines
455 B
Nix
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 { };
|
|
|
|
}
|