Add role for gnuplot.

This commit is contained in:
Tom Alexander
2025-02-01 14:38:51 -05:00
parent ed11bf1e65
commit 64e735abbf
3 changed files with 31 additions and 0 deletions

View File

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