mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-16 23:42:46 +01:00
home-environment: minor code simplification
This commit is contained in:
parent
f0d207f380
commit
02219dcd79
1 changed files with 1 additions and 2 deletions
|
|
@ -227,8 +227,7 @@ in
|
||||||
|
|
||||||
home.sessionVariables =
|
home.sessionVariables =
|
||||||
let
|
let
|
||||||
maybeSet = name: value:
|
maybeSet = n: v: optionalAttrs (v != null) { ${n} = v; };
|
||||||
listToAttrs (optional (value != null) { inherit name value; });
|
|
||||||
in
|
in
|
||||||
(maybeSet "LANG" cfg.language.base)
|
(maybeSet "LANG" cfg.language.base)
|
||||||
//
|
//
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue