Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/eum3l/opengfw-nix
- Owner: eum3l
- License: mit
- Created: 2024-02-24T15:37:15.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-10-28T12:03:00.000Z (3 months ago)
- Last Synced: 2024-10-28T15:22:41.735Z (3 months ago)
- Topics: nix, nix-flake, nixos
- Language: Nix
- Homepage: https://gfw.dev
- Size: 169 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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"
];
};
}
];
};
};
}
```