flake/modules/adb.nix
2025-03-01 11:31:30 +03:00

20 lines
359 B
Nix

{
lib,
config,
...
}: {
options = {
myModules.enableADB = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Enable ADB support";
};
};
config = lib.mkMerge [
(lib.mkIf config.myModules.enableADB {
programs.adb.enable = true;
users.users.osbm.extraGroups = ["adbusers"];
})
];
}