Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/eum3l/opengfw-nix

Nix package and NixOS module for OpenGFW
https://github.com/eum3l/opengfw-nix

nix nix-flake nixos

Last synced: 3 months ago
JSON representation

Nix package and NixOS module for OpenGFW

Awesome Lists containing this project

README

        

# OpenGFW-nix
> Nix Package and NixOS Module ([Options](OPTIONS.md)) for [OpenGFW](https://gfw.dev/)

```sh
nix run github:eum3l/opengfw-nix
```

```nix
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
opengfw.url = "github:eum3l/opengfw-nix";
};

outputs = {
opengfw,
nixpkgs,
...
}: {
nixosConfigurations.default = let
system = "x86_64-linux";
in nixpkgs.lib.nixosSystem {
inherit system;
modules = [
opengfw.nixosModules.opengfw
{
# Module
services.opengfw.enable = true;

# Package
environment.systemPackages = [
opengfw.packages.${system}.default
];

# Cache
nix.settings = {
trusted-public-keys = [
"opengfw.cachix.org-1:vuygVQLuz+GEsqd6RrPOU8ckphW1MVe8MFm22cOo2is="
];
substituters = [
"https://opengfw.cachix.org"
];
};
}
];
};
};
}
```