nixpkgs-suyu/nixos/modules/system
Kevin Cox da33c8a19d
systemd: Properly escape environment options.
Using toJSON on a string value works because the allowed JSON escape
sequences is almost a subset of the systemd allowed escape sequences.
The only exception is `\/` which JSON allows but systemd doesn't.
Luckily this sequence isn't required and toJSON don't produce it making
the result valid for systemd consumption.

Examples of things that this fixes are environment variables with double
quotes or newlines.
2017-02-20 22:20:13 -05:00
..
activation systemd: setup tmpfiles on switching configuration 2017-02-18 15:04:52 +01:00
boot systemd: Properly escape environment options. 2017-02-20 22:20:13 -05:00
etc Merge remote-tracking branch 'upstream/master' into staging 2016-10-02 10:36:47 +03:00