Skip to content

Commit dfda270

Browse files
committed
feat(home/dev): add Droid-M1 adbfs mount script
1 parent 01a5850 commit dfda270

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

home/dev/misc.nix

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@
44
hostPlatform,
55
inputs,
66
...
7-
}: {
7+
}: let
8+
droid-m1 = pkgs.writeShellScriptBin "Droid-M1" ''
9+
mountpoint="$HOME/mnt/Droid-M1"
10+
mkdir -p "$mountpoint"
11+
exec ${pkgs.adbfs-rootless}/bin/adbfs "$mountpoint" -d
12+
'';
13+
in {
814
home.packages =
915
lib.attrsets.attrValues {
1016
inherit
@@ -24,6 +30,7 @@
2430
## macOS
2531
xcodes
2632
;
33+
inherit droid-m1;
2734
leetcode-tui = inputs.leetcode-tui.packages.${hostPlatform.system}.default;
2835
}
2936
++ lib.optionals hostPlatform.isDarwin [

0 commit comments

Comments
 (0)