Update android configuration
This commit is contained in:
parent
a5c4c7c7f4
commit
ae88738a96
@ -1,8 +1,15 @@
|
|||||||
{ config, lib, pkgs, outputs, vars, ...}@args:
|
{ config, lib, pkgs, outputs, vars, ...}@args:
|
||||||
|
let
|
||||||
|
cfg = config.nixfiles.programs.adb;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
imports = [ outputs.nixosModules.adb ];
|
# imports = [ outputs.nixosModules.adb ];
|
||||||
|
|
||||||
config = {
|
options.nixfiles.programs.adb = {
|
||||||
|
enable = lib.mkEnableOption "adb configuration";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
programs.adb.enable = true;
|
programs.adb.enable = true;
|
||||||
users.users.${vars.username}.extraGroups = [ "adbusers" ];
|
users.users.${vars.username}.extraGroups = [ "adbusers" ];
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user