Add android mobile option

This commit is contained in:
Benjamin Bädorf 2021-09-27 14:52:13 +02:00
parent 6039a73b04
commit 6dce415552
No known key found for this signature in database
GPG key ID: 4406E80E13CD656C
2 changed files with 25 additions and 0 deletions

View file

@ -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" ];
};
};
}

View file

@ -0,0 +1,6 @@
{ self, config, lib, pkgs, ... }:
let inherit (lib) fileContents;
in
{
pub-solar.mobile.enable = true;
}