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