-
-
Notifications
You must be signed in to change notification settings - Fork 133
/
default.nix
47 lines (44 loc) · 1.03 KB
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{ config, lib, pkgs, ... }:
{
device = {
manufacturer = "PINE64";
name = "Pinephone (A64)";
identifier = "pine64-pinephoneA64";
productPageURL = "https://www.pine64.org/pinephone/";
supportLevel = "supported";
};
hardware = {
soc = "allwinner-a64";
mmcBootIndex = "1";
};
Tow-Boot = {
defconfig = "pinephone_defconfig";
phone-ux = {
enable = true;
blind = true;
wip = {
led_R = "led-2";
led_G = "led-1";
led_B = "led-0";
mmcSD = "0";
mmcEMMC = "1";
};
};
config = [
(helpers: with helpers; {
BUTTON_GPIO = yes;
BUTTON_SUN4I_LRADC = yes;
LED_GPIO = yes;
VIBRATOR_GPIO = yes;
})
(helpers: with helpers; {
USB_MUSB_GADGET = yes;
USB_GADGET_MANUFACTURER = freeform ''"Pine64"'';
})
];
touch-installer = {
targetBlockDevice = "/dev/mmcblk2boot0";
};
};
documentation.sections.installationInstructions = builtins.readFile ./INSTALLING.md;
}