about summary refs log tree commit diff
path: root/modules/nixos/android.nix
blob: 41b7ef9cfda3d1cfc6a3d8f353125228972cddd5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{
  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"];
  };
}

Consider giving Nix/NixOS a try! <3