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

31 lines
536 B
Nix
Raw Normal View History

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
with lib;
{
2024-08-03 22:17:23 +02:00
options.my.development.tools.embedded.enable = mkOption {
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 {
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;
}