nixos-config/modules/workstation/home-manager/development/embedded.nix

28 lines
529 B
Nix
Raw Normal View History

2024-04-11 20:15:47 +02:00
{
lib,
config,
pkgs,
...
}:
with lib;
{
2024-08-01 21:40:51 +02:00
options.my.development.embedded-tools.enable = mkOption {
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 {
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;
}