diff --git a/modules/config/shells-environment.nix b/modules/config/shells-environment.nix index 0bb7c4e26fe..f1ce492d816 100644 --- a/modules/config/shells-environment.nix +++ b/modules/config/shells-environment.nix @@ -28,7 +28,7 @@ in merge = xs: let xs' = evalProperties xs; in if isList (head xs') then concatLists xs' - else if length xs' > 1 then abort "variable in ‘environment.variables’ has multiple values" + else if builtins.lessThan 1 (length xs') then abort "variable in ‘environment.variables’ has multiple values" else if !builtins.isString (head xs') then abort "variable in ‘environment.variables’ does not have a string value" else head xs'; });