nixos/proxychains: add package option

This commit is contained in:
Chuang Zhu 2023-03-24 02:55:11 +08:00
parent 19cf008bb1
commit 46344c77b3

View File

@ -51,6 +51,10 @@ in {
enable = mkEnableOption (lib.mdDoc "installing proxychains configuration");
package = mkPackageOptionMD pkgs "proxychains" {
example = "pkgs.proxychains-ng";
};
chain = {
type = mkOption {
type = types.enum [ "dynamic" "strict" "random" ];
@ -159,7 +163,7 @@ in {
};
environment.etc."proxychains.conf".text = configFile;
environment.systemPackages = [ pkgs.proxychains ];
environment.systemPackages = [ cfg.package ];
};
}