Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eum3l/hysteria-nix
Nix package and NixOS module for Hysteria
https://github.com/eum3l/hysteria-nix
censorship-circumvention censorship-resistance censorship-resistant hysteria hysteria-2 hysteria-server hysteria2 nix nix-darwin nix-flake nix-flakes nixos nixpkgs vpn vpn-client vpn-server vpn-service
Last synced: about 1 month ago
JSON representation
Nix package and NixOS module for Hysteria
- Host: GitHub
- URL: https://github.com/eum3l/hysteria-nix
- Owner: eum3l
- License: mit
- Created: 2024-05-30T18:35:46.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-11-16T16:09:40.000Z (3 months ago)
- Last Synced: 2024-11-16T16:25:55.243Z (3 months ago)
- Topics: censorship-circumvention, censorship-resistance, censorship-resistant, hysteria, hysteria-2, hysteria-server, hysteria2, nix, nix-darwin, nix-flake, nix-flakes, nixos, nixpkgs, vpn, vpn-client, vpn-server, vpn-service
- Language: Nix
- Homepage: https://v2.hysteria.network
- Size: 52.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hysteria-nix
> Nix Package and NixOS Module ([Options](OPTIONS.md)) for [Hysteria](https://v2.hysteria.network/)```sh
nix run github:eum3l/hysteria-nix
``````nix
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
hysteria.url = "github:eum3l/hysteria-nix";
};outputs = {
hysteria,
nixpkgs,
...
}: {
nixosConfigurations.default = let
system = "x86_64-linux";
in nixpkgs.lib.nixosSystem {
inherit system;
modules = [
hysteria.nixosModules.default
{
# Module
services.hysteria.enable = true;
# Package
environment.systemPackages = [
hysteria.packages.${system}.default
];
# Cache
nix.settings = {
trusted-public-keys = [
"hysteria.cachix.org-1:zAG2qV/akrj0TPOf28gxWTDj57f8SuYjqjHw2u38vZI="
];
substituters = [
"https://hysteria.cachix.org"
];
};
}
];
};
};
}
```