home-manager: avoid import to improve error messages
When using `import` to inject the configuration into the module system we lose the location in error messages, i.e., it just says ``<unknown-file>'`.
This commit is contained in:
parent
bfb5a678d2
commit
fa4f9197ee
|
@ -11,10 +11,9 @@ let
|
||||||
|
|
||||||
env = import <home-manager/modules> {
|
env = import <home-manager/modules> {
|
||||||
configuration =
|
configuration =
|
||||||
let
|
if confAttr == ""
|
||||||
conf = import confPath;
|
then confPath
|
||||||
in
|
else (import confPath).${confAttr};
|
||||||
if confAttr == "" then conf else conf.${confAttr};
|
|
||||||
pkgs = pkgs;
|
pkgs = pkgs;
|
||||||
check = check;
|
check = check;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue