Repository navigation
Expand file tree
/
Copy pathdefault.nix
More file actions
57 lines (50 loc) · 1.92 KB
/
Copy pathdefault.nix
File metadata and controls
57 lines (50 loc) · 1.92 KB
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
48
49
50
51
52
53
54
55
56
57
# OnePlus 6T (LineageOS codename: fajita)
#
# Managed over authorized adb shell (uid 2000) via nix-android — no root, no
# replacing the OS, no Nix on the phone. Upstream's supported consumer targets
# are stock Pixel and GrapheneOS; LineageOS / OnePlus is best-effort
# (https://github.com/devindudeman/nix-android/blob/main/docs/SUPPORT.md).
#
# Workflow (controller = mba or sliceanddice):
# adb devices
# nix run .#android-rebuild -- update --flake .#oneplus6t-darwin \
# --lock hosts/android/oneplus6t/apps.lock.json
# nix run .#android-rebuild -- plan --flake .#oneplus6t-darwin --serial SERIAL
# nix run .#android-rebuild -- switch --flake .#oneplus6t-darwin --serial SERIAL
#
# On x86_64 Linux use .#oneplus6t-linux instead. Populate more apps with
# `android-rebuild import --serial SERIAL` or by editing this file + `update`.
{
device = {
name = "oneplus6t";
abi = "arm64-v8a";
user = 0;
};
apps = {
# Main f-droid.org repository — pins resolved into apps.lock.json.
fdroid.packages = [
"org.fdroid.fdroid"
"com.termux"
];
# Sideloaded / non-Play keepers (presence assertions).
attended = [ ];
# release."org.thoughtcrime.securesms".updateJson =
# "https://updates.signal.org/android/latest.json";
# play = [ "com.spotify.music" ];
# Remove undeclared third-party owner apps. System packages are never
# cleanup candidates (use android.packages.disabled for those).
# ALWAYS review `plan` uninstall lines before `switch`.
cleanup = "uninstall";
};
android = {
darkMode = true;
privateDns = "opportunistic";
# defaultApps.browser = "org.mozilla.fennec_fdroid";
permissions."com.termux" = {
grant = [ "android.permission.POST_NOTIFICATIONS" ];
flags."android.permission.POST_NOTIFICATIONS" = [ "user-set" ];
};
appOps."com.termux".RUN_IN_BACKGROUND = "allow";
batteryOptimization.exempt = [ "com.termux" ];
};
}