From 88e456914784f8d96b4e9894ca560b4549dba4ad Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 1 Feb 2013 13:39:47 +0100 Subject: [PATCH] systemd: Allow whitespace in environment values --- modules/system/boot/systemd.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/system/boot/systemd.nix b/modules/system/boot/systemd.nix index 215f625467a6..c958433ff452 100644 --- a/modules/system/boot/systemd.nix +++ b/modules/system/boot/systemd.nix @@ -226,7 +226,7 @@ let Environment=PATH=${def.path} Environment=LD_LIBRARY_PATH= ${let env = cfg.globalEnvironment // def.environment; - in concatMapStrings (n: "Environment=${n}=${getAttr n env}\n") (attrNames env)} + in concatMapStrings (n: "Environment=\"${n}=${getAttr n env}\"\n") (attrNames env)} ${optionalString (!def.restartIfChanged) "X-RestartIfChanged=false"} ${optionalString (!def.stopIfChanged) "X-StopIfChanged=false"}