home-environment: minor code simplification
This commit is contained in:
parent
f0d207f380
commit
02219dcd79
|
@ -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)
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue