os/modules/mobile/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
399 B
Nix
Raw Normal View History

2023-01-28 21:27:52 +00:00
{
lib,
config,
pkgs,
...
}:
with lib; let
2021-09-27 12:52:13 +00:00
psCfg = config.pub-solar;
cfg = config.pub-solar.mobile;
2023-01-28 21:27:52 +00:00
in {
2021-09-27 12:52:13 +00:00
options.pub-solar.mobile = {
enable = mkEnableOption "Add android adb and tooling";
};
config = mkIf cfg.enable {
programs.adb.enable = true;
2023-01-28 21:27:52 +00:00
users.users = with pkgs;
lib.setAttrByPath [psCfg.user.name] {
extraGroups = ["adbusers"];
};
2021-09-27 12:52:13 +00:00
};
}