lib/configuration: Allow not providing a device name
This is useful for including the Mobile NixOS configuration to opt into
a single subsystem (e.g. stage-1).
# }
# ```
-{ device }:
+{ device ? null }:
{
- imports = [
- (import (../devices + "/${device}"))
- ]
- ++ import ../modules/module-list.nix;
+ imports =
+ (
+ if device == null
+ then []
+ else [ (import (../devices + "/${device}")) ]
+ )
+ ++ import ../modules/module-list.nix
+ ;
}
