1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-09-29 17:57:28 +02:00

home-environment: minor code simplification

This commit is contained in:
Robert Helgesson 2018-01-05 08:05:14 +01:00
parent f0d207f380
commit 02219dcd79
No known key found for this signature in database
GPG key ID: C3DB11069E65DC86

View file

@ -227,8 +227,7 @@ in
home.sessionVariables =
let
maybeSet = name: value:
listToAttrs (optional (value != null) { inherit name value; });
maybeSet = n: v: optionalAttrs (v != null) { ${n} = v; };
in
(maybeSet "LANG" cfg.language.base)
//