Install d2.

This commit is contained in:
Tom Alexander
2025-09-02 21:57:35 -04:00
parent a6a50d7c22
commit 2a584915e4
4 changed files with 32 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
{
config,
lib,
pkgs,
...
}:
{
imports = [ ];
options.me = {
d2.enable = lib.mkOption {
type = lib.types.bool;
default = false;
example = true;
description = "Whether we want to install d2.";
};
};
config = lib.mkIf config.me.d2.enable (
lib.mkMerge [
{
environment.systemPackages = with pkgs; [
d2
];
}
]
);
}