modules/mobile-device: Use generic names when Mobile NixOS config is disabled
This is used to facilitate inclusion of the Mobile NixOS machinery in a
NixOS config, but opting-in into only a few components (e.g. stage-1)
@@ -36,4 +36,10 @@ with lib;
'';
};
};
+
+ config = mkIf (!config.mobile.enable) {
+ mobile.device.name = mkOptionDefault "generic";
+ mobile.device.identity.name = mkOptionDefault "generic";
+ mobile.device.identity.manufacturer = mkOptionDefault "generic";
+ };
}
