refactor: make modules independant and exposed in the flake for outside use

This commit is contained in:
matt1432 2024-08-02 22:32:29 -04:00
parent bc753eb285
commit 24aa4b9842
217 changed files with 2213 additions and 1954 deletions
nixosModules/adb

View file

@ -0,0 +1,27 @@
{
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;
}