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

Consider giving Nix/NixOS a try! <3