37 lines
666 B
Nix
37 lines
666 B
Nix
{ cfg }:
|
|
{ config
|
|
, lib
|
|
, name
|
|
, ...
|
|
}:
|
|
let
|
|
inherit (lib) literalExpression mkOption types;
|
|
in
|
|
{
|
|
options = {
|
|
vmid = mkOption {
|
|
type = types.int;
|
|
description = "id de la vm";
|
|
};
|
|
|
|
networking = {
|
|
macAddress = mkOption {
|
|
type = with types; listOf str;
|
|
example = [ "02:00:00:00:00:00" ];
|
|
description = ''
|
|
Mac adresse de l'interface reseau de la vm.
|
|
Les mac adresses safes sont les suivantes :
|
|
|
|
x2:xx:xx:xx:xx:xx
|
|
x6:xx:xx:xx:xx:xx
|
|
xA:xx:xx:xx:xx:xx
|
|
xE:xx:xx:xx:xx:xx
|
|
|
|
avec x n'importe quel valeur
|
|
|
|
'';
|
|
};
|
|
};
|
|
|
|
};
|
|
}
|