This commit is contained in:
parent
6cc70e117d
commit
e3fa9219b5
@ -12,11 +12,8 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||||
- name: Prepare for Nix installation
|
- uses: DeterminateSystems/nix-installer-action@v13
|
||||||
run: |
|
- uses: DeterminateSystems/magic-nix-cache-action@v7
|
||||||
apt-get update
|
|
||||||
apt-get install -y sudo
|
|
||||||
- uses: cachix/install-nix-action@ba0dd844c9180cbf77aa72a116d6fbc515d0e87b # v27
|
|
||||||
- name: lint
|
- name: lint
|
||||||
run: |
|
run: |
|
||||||
nix fmt
|
nix fmt
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, nixpkgs-unstable, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.custom.services.gitea.actions;
|
cfg = config.custom.services.gitea.actions;
|
||||||
@ -53,6 +53,7 @@ in
|
|||||||
|
|
||||||
services.gitea-actions-runner.instances.container = {
|
services.gitea-actions-runner.instances.container = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package = nixpkgs-unstable.legacyPackages.x86_64-linux.gitea-actions-runner;
|
||||||
url = "https://gitea.hillion.co.uk";
|
url = "https://gitea.hillion.co.uk";
|
||||||
tokenFile = hostConfig.age.secrets."gitea/actions/token".path;
|
tokenFile = hostConfig.age.secrets."gitea/actions/token".path;
|
||||||
|
|
||||||
@ -63,6 +64,11 @@ in
|
|||||||
runner = {
|
runner = {
|
||||||
capacity = 3;
|
capacity = 3;
|
||||||
};
|
};
|
||||||
|
cache = {
|
||||||
|
enabled = true;
|
||||||
|
host = "172.18.0.1";
|
||||||
|
port = 41919;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -73,9 +79,14 @@ in
|
|||||||
enable = true;
|
enable = true;
|
||||||
ruleset = ''
|
ruleset = ''
|
||||||
table inet filter {
|
table inet filter {
|
||||||
|
chain input {
|
||||||
|
type filter hook input priority filter; policy accept;
|
||||||
|
}
|
||||||
chain output {
|
chain output {
|
||||||
type filter hook output priority 100; policy accept;
|
type filter hook output priority 100; policy accept;
|
||||||
|
|
||||||
|
ct state { established, related } counter accept
|
||||||
|
|
||||||
ip daddr 10.0.0.0/8 drop
|
ip daddr 10.0.0.0/8 drop
|
||||||
ip daddr 100.64.0.0/10 drop
|
ip daddr 100.64.0.0/10 drop
|
||||||
ip daddr 172.16.0.0/12 drop
|
ip daddr 172.16.0.0/12 drop
|
||||||
|
Loading…
Reference in New Issue
Block a user