Add a role for mitmproxy.

This commit is contained in:
Tom Alexander
2026-08-29 09:36:57 -04:00
parent 9bfa21368b
commit 6ed4aa08f6
4 changed files with 28 additions and 0 deletions

View File

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