refactor: remove adb custom module
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
b5ccf3e287
commit
fab9209726
5 changed files with 7 additions and 40 deletions
|
@ -13,7 +13,6 @@ in {
|
|||
|
||||
./modules
|
||||
|
||||
self.nixosModules.adb
|
||||
self.nixosModules.desktop
|
||||
self.nixosModules.kmscon
|
||||
self.nixosModules.server
|
||||
|
@ -36,9 +35,12 @@ in {
|
|||
"adm"
|
||||
"video"
|
||||
"libvirtd"
|
||||
"adbusers"
|
||||
];
|
||||
};
|
||||
|
||||
programs.adb.enable = true;
|
||||
|
||||
networking = {
|
||||
hostName = "binto";
|
||||
networkmanager.enable = true;
|
||||
|
@ -66,11 +68,6 @@ in {
|
|||
sshd.enable = true;
|
||||
};
|
||||
|
||||
programs.adb = {
|
||||
enable = true;
|
||||
user = mainUser;
|
||||
};
|
||||
|
||||
services.kmscon.enable = true;
|
||||
|
||||
home-manager.users.${mainUser} = {
|
||||
|
|
|
@ -14,7 +14,6 @@ in {
|
|||
|
||||
./modules
|
||||
|
||||
self.nixosModules.adb
|
||||
self.nixosModules.desktop
|
||||
self.nixosModules.docker
|
||||
self.nixosModules.kmscon
|
||||
|
@ -39,9 +38,12 @@ in {
|
|||
"adm"
|
||||
"video"
|
||||
"libvirtd"
|
||||
"adbusers"
|
||||
];
|
||||
};
|
||||
|
||||
programs.adb.enable = true;
|
||||
|
||||
networking = {
|
||||
hostName = "wim";
|
||||
networkmanager = {
|
||||
|
@ -76,11 +78,6 @@ in {
|
|||
tailscale.enable = true;
|
||||
};
|
||||
|
||||
programs.adb = {
|
||||
enable = true;
|
||||
user = mainUser;
|
||||
};
|
||||
|
||||
boot.plymouth = {
|
||||
enable = true;
|
||||
theme = "dracula";
|
||||
|
|
|
@ -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…
Reference in a new issue