feat: dae

This commit is contained in:
Ryan Yin
2024-02-16 11:15:16 +08:00
parent fa5aaf4f97
commit 7cbff9ef3b
2 changed files with 31 additions and 2 deletions

View File

@@ -164,6 +164,8 @@
nuenv.url = "github:DeterminateSystems/nuenv";
daeuniverse.url = "github:daeuniverse/flake.nix";
######################## Some non-flake repositories #########################################
# AstroNvim is an aesthetic and feature-rich neovim config.

View File

@@ -1,11 +1,38 @@
# https://github.com/NixOS/nixpkgs/blob/nixos-23.11/nixos/modules/services/networking/dae.nix
{
pkgs,
daeuniverse,
}:
# https://github.com/daeuniverse/flake.nix
{
imports = [
daeuniverse.nixosModules.dae
daeuniverse.nixosModules.daed
];
# dae - eBPF-based Linux high-performance transparent proxy.
services.dae = {
enable = true;
package = pkgs.dae;
disableTxChecksumIpGeneric = false;
configFile = ./bypass-router.dae;
assets = with pkgs; [v2ray-geoip v2ray-domain-list-community];
# alternatively, specify assets dir
# assetsPath = "/etc/dae";
openFirewall = {
enable = true;
port = 12345;
};
configFile = ./bypass-router.dae;
};
# daed, a modern web dashboard for dae.
services.daed = {
enable = true;
package = pkgs.daed;
configdir = "/etc/daed";
listen = "0.0.0.0:9090";
openfirewall = {
enable = true;
port = 9090;
};
};
}