1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/nixos
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
..
doc/manual manual: Add link to config section (#22994) 2017-02-20 14:32:49 +01:00
lib nixos/test: Fix escaping for copyFileFromHost 2017-02-17 19:45:49 +01:00
maintainers Create AMIs for ca-central-1 (Canada) 2017-02-19 23:19:07 +01:00
modules systemd: Properly escape environment options. 2017-02-20 22:20:13 -05:00
tests nixos/tests/taskserver: Add test for manual config 2017-02-17 19:46:01 +01:00
COPYING
default.nix
README
release-combined.nix nixos: drop references to kde4 2017-02-11 14:01:13 -05:00
release-small.nix nixos/release-small.nix: cleanup to use default versions 2017-01-27 15:33:54 +01:00
release.nix pam_oath: require OATH and pam_unix credentials to be valid 2017-02-12 18:27:11 -05:00

*** NixOS ***

NixOS is a Linux distribution based on the purely functional package
management system Nix.  More information can be found at
http://nixos.org/nixos and in the manual in doc/manual.