about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorFelix Buehler2024-08-24 22:05:55 +0200
committerFelix Buehler2024-08-30 23:01:45 +0200
commit3e5d6ba7df849c02ab4d6a64d5f2058c6e68fe66 (patch)
tree142e4ef1cf294015cfd5c294a40ae96101b61cc3 /nixos
parentcd197cebdfd50a4f2089d2c6ba9e8c4ec02e8915 (diff)
nixos/virtualisation.vmware.image: remove `with lib;`
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/virtualisation/vmware-image.nix23
1 files changed, 10 insertions, 13 deletions
diff --git a/nixos/modules/virtualisation/vmware-image.nix b/nixos/modules/virtualisation/vmware-image.nix
index 4a9064c9b8a3..47b7c212bcd1 100644
--- a/nixos/modules/virtualisation/vmware-image.nix
+++ b/nixos/modules/virtualisation/vmware-image.nix
@@ -1,7 +1,4 @@
 { config, pkgs, lib, ... }:
-
-with lib;
-
 let
   boolToStr = value: if value then "on" else "off";
   cfg = config.vmware;
@@ -17,35 +14,35 @@ let
 in {
   options = {
     vmware = {
-      baseImageSize = mkOption {
-        type = with types; either (enum [ "auto" ]) int;
+      baseImageSize = lib.mkOption {
+        type = with lib.types; either (enum [ "auto" ]) int;
         default = "auto";
         example = 2048;
         description = ''
           The size of the VMWare base image in MiB.
         '';
       };
-      vmDerivationName = mkOption {
-        type = types.str;
+      vmDerivationName = lib.mkOption {
+        type = lib.types.str;
         default = "nixos-vmware-${config.system.nixos.label}-${pkgs.stdenv.hostPlatform.system}";
         description = ''
           The name of the derivation for the VMWare appliance.
         '';
       };
-      vmFileName = mkOption {
-        type = types.str;
+      vmFileName = lib.mkOption {
+        type = lib.types.str;
         default = "nixos-${config.system.nixos.label}-${pkgs.stdenv.hostPlatform.system}.vmdk";
         description = ''
           The file name of the VMWare appliance.
         '';
       };
-      vmSubformat = mkOption {
-        type = types.enum subformats;
+      vmSubformat = lib.mkOption {
+        type = lib.types.enum subformats;
         default = "monolithicSparse";
         description = "Specifies which VMDK subformat to use.";
       };
-      vmCompat6 = mkOption {
-        type = types.bool;
+      vmCompat6 = lib.mkOption {
+        type = lib.types.bool;
         default = false;
         example = true;
         description = "Create a VMDK version 6 image (instead of version 4).";