summary refs log tree commit diff
path: root/nixos/modules/system
diff options
context:
space:
mode:
authorBjørn Forsman <bjorn.forsman@gmail.com>2016-09-14 12:56:07 +0200
committerobadz <obadz-git@obadz.com>2016-09-14 11:56:07 +0100
commit1010271c63f503113c0e8337977610ea783880ec (patch)
tree443ea97d9cdbdee45ff99172147fe6b5d2ad37fa /nixos/modules/system
parent642a42875f8434a5acdf70e8621ea61d09848cf2 (diff)
downloadnixlib-1010271c63f503113c0e8337977610ea783880ec.tar
nixlib-1010271c63f503113c0e8337977610ea783880ec.tar.gz
nixlib-1010271c63f503113c0e8337977610ea783880ec.tar.bz2
nixlib-1010271c63f503113c0e8337977610ea783880ec.tar.lz
nixlib-1010271c63f503113c0e8337977610ea783880ec.tar.xz
nixlib-1010271c63f503113c0e8337977610ea783880ec.tar.zst
nixlib-1010271c63f503113c0e8337977610ea783880ec.zip
nixos/pam: clean up generated files (no functional change) (#18580)
The generated files in /etc/pam.d/ typically have a lot of empty lines
in them, due to how the generated Nix strings are joined together;
optional elements that are excluded still produce a newline. This patch
changes how the files are generated to create more compact,
human-friendly output files.

The change is basically this, repeated:

-  ''
-    ${optionalString use_ldap
-        "account sufficient ${pam_ldap}/lib/security/pam_ldap.so"}
-  ''
+  optionalString use_ldap ''
+    account sufficient ${pam_ldap}/lib/security/pam_ldap.so
+  ''
Diffstat (limited to 'nixos/modules/system')
0 files changed, 0 insertions, 0 deletions