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