refactor: remove adb custom module

This commit is contained in:
matt1432 2024-11-22 18:51:49 -05:00
parent b5ccf3e287
commit fab9209726
5 changed files with 7 additions and 40 deletions
nixosModules

View file

@ -1,27 +0,0 @@
{
config,
lib,
...
}: let
inherit (lib) mkIf mkOption types;
cfg = config.programs.adb;
in {
options.programs.adb = {
user = mkOption {
type = types.str;
default = "root";
description = ''
The name of the user who is going to interact with
the android devices.
'';
};
};
config = mkIf cfg.enable {
users.users.${cfg.user}.extraGroups = ["adbusers"];
};
# For accurate stack trace
_file = ./default.nix;
}

View file

@ -1,5 +1,4 @@
self: {
adb = import ./adb;
borgbackup = import ./borgbackup;
desktop = import ./desktop self;
docker = import ./docker self.inputs.khepri;

View file

@ -18,6 +18,7 @@ in {
};
};
# FIXME: Move to mkNixOS
users.users.${cfg.user} = {
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPE39uk52+NIDLdHeoSHIEsOUUFRzj06AGn09z4TUOYm matt@OP9"