Files
nixos-config/modules/host/vpn.nix
T

29 lines
540 B
Nix
Raw Normal View History

2026-07-06 07:45:55 +03:00
{ lib, ... }: {
2026-05-27 23:42:04 +03:00
programs.clash-verge = {
2024-08-26 13:05:27 +03:00
enable = true;
2026-05-27 23:42:04 +03:00
serviceMode = true;
tunMode = true;
autoStart = true;
2024-08-26 13:05:27 +03:00
};
2026-07-06 07:45:55 +03:00
systemd.services.clash-verge.serviceConfig = {
CapabilityBoundingSet = lib.mkForce [
"CAP_NET_ADMIN"
"CAP_NET_RAW"
"CAP_SYS_ADMIN"
"CAP_DAC_OVERRIDE"
"CAP_DAC_READ_SEARCH"
"CAP_SYS_PTRACE"
"CAP_SETUID"
"CAP_SETGID"
"CAP_CHOWN"
"CAP_MKNOD"
];
AmbientCapabilities = [
"CAP_DAC_READ_SEARCH"
"CAP_SYS_PTRACE"
];
};
2024-08-26 13:05:27 +03:00
}