nixos-config/modules/workstation/home-manager/development/embedded.nix
2024-04-11 20:33:12 +02:00

28 lines
505 B
Nix

{
lib,
config,
pkgs,
...
}:
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;
}