Files
proxy-suite-flake/flake.nix
T

57 lines
1.5 KiB
Nix
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
description = "NixOS proxy suite – sing-box, zapret, tg-ws-proxy";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
zapret = {
url = "github:kartavkun/zapret-discord-youtube";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
{
self,
nixpkgs,
zapret,
}:
let
systems = [
"x86_64-linux"
"aarch64-linux"
];
forAll = nixpkgs.lib.genAttrs systems;
pkgsFor = system: import nixpkgs { inherit system; };
proxySuiteModule = import ./modules/proxy-suite { inherit zapret; };
in
{
# Main module – bakes in the zapret flake so consumers don't need it as a separate input.
nixosModules.default = proxySuiteModule;
# Re-export zapret standalone for users who want just that.
nixosModules.zapret = zapret.nixosModules.default;
overlays.default = final: prev: {
tg-ws-proxy = import ./pkgs/tg-ws-proxy.nix { pkgs = final; };
proxy-suite-tray = import ./pkgs/proxy-suite-tray.nix { pkgs = final; };
};
packages = forAll (system: {
tg-ws-proxy = import ./pkgs/tg-ws-proxy.nix { pkgs = pkgsFor system; };
proxy-suite-tray = import ./pkgs/proxy-suite-tray.nix { pkgs = pkgsFor system; };
});
checks = forAll (
system:
import ./nix/checks.nix {
inherit
system
nixpkgs
proxySuiteModule
zapret
;
}
);
};
}