nixos-configs/modules/adb.nix
matt1432 89ebaa520f
All checks were successful
Discord / discord commits (push) Has been skipped
refactor: move adb to flake module
2024-07-14 19:30:28 -04:00

24 lines
427 B
Nix

{
config,
lib,
...
}: let
inherit (lib) mkIf mkOption types;
cfg = config.programs.adb;
in {
options.programs.adb = {
user = mkOption {
type = types.str;
default = "root";
description = ''
The name of the user who is going to interact with
the android devices.
'';
};
};
config = mkIf cfg.enable {
users.users.${cfg.user}.extraGroups = ["adbusers"];
};
}