Need help with setting up jupyter R kernel

I’m trying to set up a jupyter environment for python and R. But I struggle to get anything working. My current config builds, but I don’t seem to have my custom kernels available (the only I get is some default python3 kernel), and the service seems not to have access to my directories. I’m kind of at a loss.

	users.users.jupyter.group = "jupyter";

	services.jupyter = {
		enable = true;
		password = "'sha1:1b961dc713fb:88483270a63e57d18d43cf337e629539de1436ba'";
		package = pkgs.jupyter;
		kernels = {
			python3 = let
				env = (pkgs.python3.withPackages (pythonPackages: with pythonPackages; [
					ipykernel
					pandas
				]));
			in {
				displayName = "Python 3 for machine learning";
				argv = [
					"${env.interpreter}"
					"-m"
					"ipykernel_launcher"
					"-f"
					"{connection_file}"
			 	];
				language = "python";
			};

			R = let
				rWrapper = pkgs.rWrapper;
  				rPackages = pkgs.rPackages;
				env = (rWrapper.override{ packages = with rPackages; [
						irkernel
						ggplot2
						dplyr
						xts
					];
				});
			in {
				displayName = "R for Statistics";
				argv = [
					"${pkgs.rWrapper}/bin/R"
					"-m"
					"irkernel"
					"-f"
					"{connection_file}"
				];
				language = "R";
			};
		};
	};