android and other stuff
This commit is contained in:
14
modules/hardware/android.nix
Normal file
14
modules/hardware/android.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
let cfg = config.custom.hardware.android;
|
||||
in {
|
||||
options.custom.hardware.android = {
|
||||
enable = lib.mkEnableOption "Enables android phone support";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.adb = {
|
||||
enable = true;
|
||||
};
|
||||
users.users.${config.mainUser.name}.extraGroups = [ "adbusers" ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user