From e6ed60548397627bf10f561f9438201dbba0a36e Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Sun, 21 Apr 2024 02:15:42 +0300 Subject: 2024-04-21 --- modules/android.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 modules/android.nix (limited to 'modules/android.nix') diff --git a/modules/android.nix b/modules/android.nix new file mode 100644 index 0000000..363bd6c --- /dev/null +++ b/modules/android.nix @@ -0,0 +1,14 @@ +{ config, lib, ... }: +with lib; +let + cfg = config.nixfiles.modules.android; +in +{ + options.nixfiles.modules.android.enable = mkEnableOption "support for Android devices"; + + config = mkIf cfg.enable { + programs.adb.enable = true; + + my.extraGroups = [ "adbusers" ]; + }; +} -- cgit v1.2.3