diff --git a/modules/mobile/default.nix b/modules/mobile/default.nix new file mode 100644 index 00000000..b02819a9 --- /dev/null +++ b/modules/mobile/default.nix @@ -0,0 +1,19 @@ +{ lib, config, pkgs, ... }: +with lib; +let + psCfg = config.pub-solar; + cfg = config.pub-solar.mobile; +in +{ + options.pub-solar.mobile = { + enable = mkEnableOption "Add android adb and tooling"; + }; + + config = mkIf cfg.enable { + programs.adb.enable = true; + + users.users = with pkgs; lib.setAttrByPath [ psCfg.user.name ] { + extraGroups = [ "adbusers" ]; + }; + }; +} diff --git a/profiles/mobile/default.nix b/profiles/mobile/default.nix new file mode 100644 index 00000000..dc063231 --- /dev/null +++ b/profiles/mobile/default.nix @@ -0,0 +1,6 @@ +{ self, config, lib, pkgs, ... }: +let inherit (lib) fileContents; +in +{ + pub-solar.mobile.enable = true; +}