Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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"
];
};
}
];
};
};
}
```