parent
b5ccf3e287
commit
fab9209726
5 changed files with 7 additions and 40 deletions
nixosModules
|
@ -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;
|
||||
}
|
|
@ -1,5 +1,4 @@
|
|||
self: {
|
||||
adb = import ./adb;
|
||||
borgbackup = import ./borgbackup;
|
||||
desktop = import ./desktop self;
|
||||
docker = import ./docker self.inputs.khepri;
|
||||
|
|
|
@ -18,6 +18,7 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
# FIXME: Move to mkNixOS
|
||||
users.users.${cfg.user} = {
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPE39uk52+NIDLdHeoSHIEsOUUFRzj06AGn09z4TUOYm matt@OP9"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue