nixos/virtualisation.vmware.image: remove with lib;
This commit is contained in:
parent
cd197cebdf
commit
3e5d6ba7df
@ -1,7 +1,4 @@
|
|||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
boolToStr = value: if value then "on" else "off";
|
boolToStr = value: if value then "on" else "off";
|
||||||
cfg = config.vmware;
|
cfg = config.vmware;
|
||||||
@ -17,35 +14,35 @@ let
|
|||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
vmware = {
|
vmware = {
|
||||||
baseImageSize = mkOption {
|
baseImageSize = lib.mkOption {
|
||||||
type = with types; either (enum [ "auto" ]) int;
|
type = with lib.types; either (enum [ "auto" ]) int;
|
||||||
default = "auto";
|
default = "auto";
|
||||||
example = 2048;
|
example = 2048;
|
||||||
description = ''
|
description = ''
|
||||||
The size of the VMWare base image in MiB.
|
The size of the VMWare base image in MiB.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
vmDerivationName = mkOption {
|
vmDerivationName = lib.mkOption {
|
||||||
type = types.str;
|
type = lib.types.str;
|
||||||
default = "nixos-vmware-${config.system.nixos.label}-${pkgs.stdenv.hostPlatform.system}";
|
default = "nixos-vmware-${config.system.nixos.label}-${pkgs.stdenv.hostPlatform.system}";
|
||||||
description = ''
|
description = ''
|
||||||
The name of the derivation for the VMWare appliance.
|
The name of the derivation for the VMWare appliance.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
vmFileName = mkOption {
|
vmFileName = lib.mkOption {
|
||||||
type = types.str;
|
type = lib.types.str;
|
||||||
default = "nixos-${config.system.nixos.label}-${pkgs.stdenv.hostPlatform.system}.vmdk";
|
default = "nixos-${config.system.nixos.label}-${pkgs.stdenv.hostPlatform.system}.vmdk";
|
||||||
description = ''
|
description = ''
|
||||||
The file name of the VMWare appliance.
|
The file name of the VMWare appliance.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
vmSubformat = mkOption {
|
vmSubformat = lib.mkOption {
|
||||||
type = types.enum subformats;
|
type = lib.types.enum subformats;
|
||||||
default = "monolithicSparse";
|
default = "monolithicSparse";
|
||||||
description = "Specifies which VMDK subformat to use.";
|
description = "Specifies which VMDK subformat to use.";
|
||||||
};
|
};
|
||||||
vmCompat6 = mkOption {
|
vmCompat6 = lib.mkOption {
|
||||||
type = types.bool;
|
type = lib.types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
example = true;
|
example = true;
|
||||||
description = "Create a VMDK version 6 image (instead of version 4).";
|
description = "Create a VMDK version 6 image (instead of version 4).";
|
||||||
|
Loading…
Reference in New Issue
Block a user