1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-17 21:11:34 +03:00
mobile-nixos/devices/samsung-a5y17lte/default.nix
Samuel Dionne-Riel 92cd45ded6 samsung-a5y17lte: Disable MAC address randomization
With the qcacld-2.0 driver, this makes the interface disappear when
Network Manager is running.
2021-01-11 16:34:54 -05:00

53 lines
1.2 KiB
Nix

{ pkgs, lib, ... }:
{
mobile.device.name = "samsung-a5y17lte";
mobile.device.identity = {
name = "Galaxy A5 (2017)";
manufacturer = "Samsung";
};
mobile.hardware = {
soc = "exynos-7880";
ram = 1024 * 3;
screen = {
width = 1080; height = 1920;
};
};
mobile.boot.stage-1 = {
kernel.package = pkgs.callPackage ./kernel { };
};
mobile.device.firmware = pkgs.callPackage ./firmware {};
mobile.system.android = {
bootimg.flash = {
offset_base = "0x10000000";
offset_kernel = "0x00008000";
offset_ramdisk = "0x01000000";
offset_second = "0x00f00000";
offset_tags = "0x00000100";
pagesize = "2048";
};
flashingMethod = "odin";
};
boot.kernelParams = [
# Extracted from an Android boot image
# (Actually blank!)
];
mobile.boot.stage-1.compression = lib.mkDefault "xz";
mobile.system.type = "android";
mobile.usb.mode = "android_usb";
mobile.usb.idVendor = "04E8"; # Samsung
mobile.usb.idProduct = "6860"; # Galaxy A
# qcacld-2.0 works the same way!
mobile.quirks.qualcomm.wcnss-wlan.enable = true;
mobile.quirks.wifi.disableMacAddressRandomization = true;
}