nixos/cri-o: Remove unnecessary `lib.` qualifiers

We're already using `with lib` here, so we can just say `mkOption`, etc.

authored by embr and committed by zowoq 8e6c4f9a 1cf78b53

+9 -9
+9 -9
nixos/modules/virtualisation/cri-o.nix
··· 16 ]; 17 18 meta = { 19 - maintainers = lib.teams.podman.members; 20 }; 21 22 options.virtualisation.cri-o = { ··· 58 extraPackages = mkOption { 59 type = with types; listOf package; 60 default = [ ]; 61 - example = lib.literalExample '' 62 [ 63 pkgs.gvisor 64 ] ··· 68 ''; 69 }; 70 71 - package = lib.mkOption { 72 type = types.package; 73 default = crioPackage; 74 internal = true; ··· 84 internal = true; 85 }; 86 87 - settings = lib.mkOption { 88 type = format.type; 89 default = { }; 90 description = '' ··· 103 storage_driver = cfg.storageDriver; 104 105 image = { 106 - pause_image = lib.mkIf (cfg.pauseImage != null) cfg.pauseImage; 107 - pause_command = lib.mkIf (cfg.pauseCommand != null) cfg.pauseCommand; 108 }; 109 110 network = { 111 plugin_dirs = [ "${pkgs.cni-plugins}/bin" ]; 112 - network_dir = lib.mkIf (cfg.networkDir != null) cfg.networkDir; 113 }; 114 115 runtime = { ··· 121 optional (config.virtualisation.containers.ociSeccompBpfHook.enable) 122 config.boot.kernelPackages.oci-seccomp-bpf-hook; 123 124 - default_runtime = lib.mkIf (cfg.runtime != null) cfg.runtime; 125 - runtimes = lib.mkIf (cfg.runtime != null) { 126 "${cfg.runtime}" = { }; 127 }; 128 };
··· 16 ]; 17 18 meta = { 19 + maintainers = teams.podman.members; 20 }; 21 22 options.virtualisation.cri-o = { ··· 58 extraPackages = mkOption { 59 type = with types; listOf package; 60 default = [ ]; 61 + example = literalExample '' 62 [ 63 pkgs.gvisor 64 ] ··· 68 ''; 69 }; 70 71 + package = mkOption { 72 type = types.package; 73 default = crioPackage; 74 internal = true; ··· 84 internal = true; 85 }; 86 87 + settings = mkOption { 88 type = format.type; 89 default = { }; 90 description = '' ··· 103 storage_driver = cfg.storageDriver; 104 105 image = { 106 + pause_image = mkIf (cfg.pauseImage != null) cfg.pauseImage; 107 + pause_command = mkIf (cfg.pauseCommand != null) cfg.pauseCommand; 108 }; 109 110 network = { 111 plugin_dirs = [ "${pkgs.cni-plugins}/bin" ]; 112 + network_dir = mkIf (cfg.networkDir != null) cfg.networkDir; 113 }; 114 115 runtime = { ··· 121 optional (config.virtualisation.containers.ociSeccompBpfHook.enable) 122 config.boot.kernelPackages.oci-seccomp-bpf-hook; 123 124 + default_runtime = mkIf (cfg.runtime != null) cfg.runtime; 125 + runtimes = mkIf (cfg.runtime != null) { 126 "${cfg.runtime}" = { }; 127 }; 128 };