nix/sys/modules/android.nix

23 lines
491 B
Nix

{
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.local.sys.androidSupport;
in {
options.local.sys.androidSupport = {
enable = mkEnableOption "androidSupport settings";
};
config = mkIf cfg.enable {
services.udev.packages = with pkgs; [
# android-udev-rules
# todo: 'android-udev-rules' has been removed due to being superseded by built-in systemd uaccess rules
];
environment.systemPackages = with pkgs; [
android-tools
];
};
}