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