initial commit
This commit is contained in:
commit
95085a0d24
16 changed files with 294 additions and 0 deletions
27
modules/virtual/default.nix
Normal file
27
modules/virtual/default.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{ 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 { };
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue