Skip to content

Commit

Permalink
set up adb
Browse files Browse the repository at this point in the history
  • Loading branch information
tejing1 committed Jan 12, 2025
1 parent ee2afaa commit 4b6719c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions nixosConfigurations/tejingdesk/customization.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
my.users.tejing.pam = true;
my.users.tejing.desktop = true;
my.users.tejing.network = true;
my.users.tejing.adb = true;
}
5 changes: 5 additions & 0 deletions nixosModules/users/tejing/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ in
options.my.users.tejing.pam = mkEnableOption "pam settings for user \"tejing\"";
options.my.users.tejing.desktop = mkEnableOption "desktop-specific settings for user \"tejing\"";
options.my.users.tejing.network = mkEnableOption "networking settings for user \"tejing\"";
options.my.users.tejing.adb = mkEnableOption "adb usage by user \"tejing\"";
config = mkIf my.users.tejing.enable (mkMerge [
{
users.users.tejing = {
Expand Down Expand Up @@ -76,5 +77,9 @@ in
networking.firewall.allowedTCPPorts = [ 62813 ];
networking.firewall.allowedUDPPorts = [ 62813 ];
})
(mkIf my.users.tejing.adb {
programs.adb.enable = true;
users.users.tejing.extraGroups = [ "adbusers" ];
})
]);
}

0 comments on commit 4b6719c

Please sign in to comment.