about summary refs log tree commit diff
path: root/modules/nixos/android.nix
blob: 307490a9a61d668bae709a8571f74ea295f8b8f9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
  config,
  lib,
  inputs,
  pkgs,
  ...
}:
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