Add android mobile option
This commit is contained in:
parent
6039a73b04
commit
6dce415552
19
modules/mobile/default.nix
Normal file
19
modules/mobile/default.nix
Normal 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" ];
|
||||
};
|
||||
};
|
||||
}
|
6
profiles/mobile/default.nix
Normal file
6
profiles/mobile/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{ self, config, lib, pkgs, ... }:
|
||||
let inherit (lib) fileContents;
|
||||
in
|
||||
{
|
||||
pub-solar.mobile.enable = true;
|
||||
}
|
Loading…
Reference in a new issue