Skip to content

eum3l/OpenGFW-nix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenGFW-nix

Nix Package and NixOS Module (Options) for OpenGFW

nix run github:eum3l/opengfw-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" 
            ];
          };
        }
      ];
    };
  };
}

About

Nix package and NixOS module for OpenGFW

Topics

Resources

License

Stars

Watchers

Forks

Languages