[NixOS] Add adb support

This commit is contained in:
Ivan Malison 2019-01-02 12:41:19 -08:00
parent a33382da61
commit 93ee4866b8
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -174,6 +174,7 @@ in
patchelf patchelf
plasma-workspace plasma-workspace
powertop powertop
pscircle
python-with-my-packages python-with-my-packages
qt5.qttools qt5.qttools
rcm rcm
@ -214,6 +215,7 @@ in
programs.gnupg.agent = { enable = true; enableSSHSupport = true; }; programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
programs.adb.enable = true;
services.openssh.enable = true; services.openssh.enable = true;
services.avahi = { services.avahi = {
enable = true; enable = true;
@ -270,7 +272,13 @@ in
# Define a user account. Don't forget to set a password with passwd. # Define a user account. Don't forget to set a password with passwd.
users.extraUsers = let users.extraUsers = let
extraGroups = [ extraGroups = [
"wheel" "disk" "audio" "video" "networkmanager" "systemd-journal" "audio"
"adbusers"
"disk"
"networkmanager"
"systemd-journal"
"video"
"wheel"
]; ];
userDefaults = { userDefaults = {
inherit extraGroups; inherit extraGroups;
@ -294,5 +302,5 @@ in
}; };
}; };
system.nixos.stateVersion = "18.03"; system.stateVersion = "18.03";
} }