]> Git — Sourcephile - sourcephile-nix.git/blob - hosts/mermet/croc.nix
sourcehut: fix celery and use eventlet
[sourcephile-nix.git] / hosts / mermet / croc.nix
1 { inputs, pkgs, lib, config, ... }:
2 let
3 inherit (config.services) croc;
4 in
5 {
6 networking.nftables.ruleset = ''
7 add rule inet filter net2fw tcp dport {${lib.concatMapStringsSep "," toString croc.ports}} counter accept comment "croc"
8 '';
9 services.croc = {
10 enable = true;
11 pass = builtins.readFile (inputs.secrets + "/croc/pass");
12 #debug = true;
13 };
14 }