about summary refs log tree commit diff
path: root/modules/android.nix
blob: 65710cae5ef8944c6667c3e6da2e7d11462a52f2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
{ config, lib, ... }:
let
  cfg = config.nixfiles.modules.android;
in
{
  options.nixfiles.modules.android.enable = lib.mkEnableOption "support for Android devices";

  config = lib.mkIf cfg.enable {
    programs.adb.enable = true;

    my.extraGroups = [ "adbusers" ];
  };
}

Consider giving Nix/NixOS a try! <3