From c6d7ffa4b6a3b1722327b341d67d64a06a297a34 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Sun, 14 Apr 2024 14:26:59 -0400 Subject: [PATCH] feat: add adb on desktops --- devices/binto/default.nix | 1 + devices/wim/default.nix | 1 + modules/android.nix | 10 ++++++++++ 3 files changed, 12 insertions(+) create mode 100644 modules/android.nix diff --git a/devices/binto/default.nix b/devices/binto/default.nix index 6e4ea844..b4429e1b 100644 --- a/devices/binto/default.nix +++ b/devices/binto/default.nix @@ -4,6 +4,7 @@ in { imports = [ ./hardware-configuration.nix + ../../modules/android.nix ../../modules/ags ../../modules/audio.nix ../../modules/hyprland diff --git a/devices/wim/default.nix b/devices/wim/default.nix index efa3106f..94ae60ab 100644 --- a/devices/wim/default.nix +++ b/devices/wim/default.nix @@ -4,6 +4,7 @@ in { imports = [ ./hardware-configuration.nix + ../../modules/android.nix ../../modules/ags ../../modules/audio.nix ../../modules/hyprland diff --git a/modules/android.nix b/modules/android.nix new file mode 100644 index 00000000..e99dddc1 --- /dev/null +++ b/modules/android.nix @@ -0,0 +1,10 @@ +{ + config, + pkgs, + ... +}: let + inherit (config.vars) mainUser; +in { + programs.adb.enable = true; + users.users.${mainUser}.extraGroups = ["adbusers"]; +}