home-manager: allow unspecified `confAttr`

PR #1255
This commit is contained in:
Matthew Bauer 2020-05-20 14:23:53 -05:00 committed by Robert Helgesson
parent dcbe0f2a31
commit 4d49cee194
No known key found for this signature in database
GPG Key ID: 36BDAA14C2797E89
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{ pkgs ? import <nixpkgs> {}
, confPath
, confAttr
, confAttr ? null
, check ? true
, newsReadIdsFile ? null
}:
@ -11,7 +11,7 @@ let
env = import ../modules {
configuration =
if confAttr == ""
if confAttr == "" || confAttr == null
then confPath
else (import confPath).${confAttr};
pkgs = pkgs;