android and other stuff

This commit is contained in:
Kopatz
2024-06-22 13:10:30 +02:00
parent 18b5693a1c
commit dadf6bd521
7 changed files with 38 additions and 8 deletions

View File

@@ -0,0 +1,14 @@
{ config, pkgs, lib, ... }:
let cfg = config.custom.hardware.android;
in {
options.custom.hardware.android = {
enable = lib.mkEnableOption "Enables android phone support";
};
config = lib.mkIf cfg.enable {
programs.adb = {
enable = true;
};
users.users.${config.mainUser.name}.extraGroups = [ "adbusers" ];
};
}