2024-04-11 20:15:47 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
2023-10-22 17:12:42 +02:00
|
|
|
with lib;
|
|
|
|
{
|
|
|
|
options.development.embedded.enableTools = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = false;
|
|
|
|
example = true;
|
|
|
|
description = ''
|
|
|
|
Enable embedded tools.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
options.development.embedded.toolsList = mkOption {
|
|
|
|
type = types.listOf types.package;
|
|
|
|
default = with pkgs; [
|
|
|
|
qemu
|
|
|
|
minicom
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
config.home.packages = lib.mkIf config.development.embedded.enableTools config.development.embedded.toolsList;
|
|
|
|
}
|