File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313 flake . nixosModules . service-restic-rest
1414 flake . nixosModules . service-jellyfin
1515 flake . nixosModules . service-rqbit
16+ flake . nixosModules . service-woodpecker
1617 ] ;
1718
1819 networking = {
Original file line number Diff line number Diff line change 1919 "/var/lib/nixos" # uid and gid mappings
2020 "/var/log" # logs
2121 "/var/lib/docker" # docker rootful
22+ # sandboxed systemd services -> TODO: should be per service
23+ {
24+ directory = "/var/lib/private" ;
25+ mode = "0700" ;
26+ }
2227 ] ;
2328 files = [
2429 "/etc/machine-id" # important, e.g. for journald
Original file line number Diff line number Diff line change 88 } ;
99
1010 age . secrets . factorio . file = ../../secrets/factorio.age ;
11-
12- environment . persistence . "/nix/persist" = {
13- directories = [
14- {
15- directory = "/var/lib/private" ;
16- mode = "0700" ;
17- }
18- ] ;
19- } ;
2011}
Original file line number Diff line number Diff line change 1+ {
2+ config ,
3+ lib ,
4+ pkgs ,
5+ ...
6+ } : {
7+ services = {
8+ woodpecker-server = {
9+ enable = true ;
10+ environmentFile = "${ config . age . secrets . woodpecker . path } " ;
11+ environment = {
12+ WOODPECKER_ADMIN = "debugloop" ;
13+ WOODPECKER_HOST = "https://ci.danieln.de" ;
14+
15+ WOODPECKER_GITEA = "true" ;
16+ WOODPECKER_GITEA_URL = "https://codeberg.org" ;
17+
18+ WOODPECKER_SERVER_ADDR = "localhost:8082" ;
19+ } ;
20+ } ;
21+ woodpecker-agents . agents . local = {
22+ enable = true ;
23+ environmentFile = [ "${ config . age . secrets . woodpecker . path } " ] ;
24+ environment = {
25+ WOODPECKER_SERVER = "localhost:9000" ;
26+ WOODPECKER_BACKEND = "local" ;
27+ WOODPECKER_HEALTHCHECK_ADDR = "localhost:3004" ;
28+ } ;
29+ path = with pkgs ; [
30+ git
31+ git-lfs
32+ bash
33+ curl
34+ jq
35+ nix
36+ ] ;
37+ } ;
38+ } ;
39+
40+ # NOTE: Required by the .#update script specifically for inline sed replace.
41+ systemd . services . woodpecker-agent-local . serviceConfig . SystemCallFilter = [ "@chown" ] ;
42+
43+ age . secrets . woodpecker . file = ../../secrets/woodpecker.age ;
44+
45+ services . caddy . virtualHosts . "ci.danieln.de" . extraConfig = ''
46+ reverse_proxy localhost:8082
47+ '' ;
48+ }
Original file line number Diff line number Diff line change 1818 "miniflux.age" . publicKeys = all ;
1919 "factorio.age" . publicKeys = all ;
2020 "mullvad.conf.age" . publicKeys = all ;
21+ "woodpecker.age" . publicKeys = all ;
2122}
You can’t perform that action at this time.
0 commit comments