Merge branch 'main' of ssh://git.berlin.ccc.de/xengi/infra
Some checks failed
Test Nix flake / Test nix flake (push) Has been cancelled

This commit is contained in:
XenGi 2026-10-20 20:34:02 +02:00
commit cd82a0facd
Signed by: xengi
SSH key fingerprint: SHA256:dM+fLZGsDvyv6kunjE8bGduL24VsCFB4LEOSdmRHdG0
5 changed files with 27 additions and 89 deletions

89
flake.lock generated
View file

@ -2,59 +2,34 @@
"nodes": { "nodes": {
"agenix": { "agenix": {
"inputs": { "inputs": {
"darwin": "darwin",
"home-manager": "home-manager",
"nixpkgs": [ "nixpkgs": [
"nixpkgs" "nixpkgs"
],
"systems": "systems"
},
"locked": {
"lastModified": 1770165109,
"narHash": "sha256-9VnK6Oqai65puVJ4WYtCTvlJeXxMzAp/69HhQuTdl/I=",
"owner": "ryantm",
"repo": "agenix",
"rev": "b027ee29d959fda4b60b57566d64c98a202e0feb",
"type": "github"
},
"original": {
"owner": "ryantm",
"repo": "agenix",
"type": "github"
}
},
"darwin": {
"inputs": {
"nixpkgs": [
"agenix",
"nixpkgs"
] ]
}, },
"locked": { "locked": {
"lastModified": 1744478979, "lastModified": 1790734419,
"narHash": "sha256-dyN+teG9G82G+m+PX/aSAagkC+vUv0SgUw3XkPhQodQ=", "narHash": "sha256-n7wew722m1OTBT9DOIMxNX/NF4zfsSUABAO5eW3wikE=",
"owner": "lnl7", "owner": "ryantm",
"repo": "nix-darwin", "repo": "agenix",
"rev": "43975d782b418ebf4969e9ccba82466728c2851b", "rev": "3daa710894355fa2fad8243380af373a2b4046ef",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "lnl7", "owner": "ryantm",
"ref": "master", "repo": "agenix",
"repo": "nix-darwin",
"type": "github" "type": "github"
} }
}, },
"flake-utils": { "flake-utils": {
"inputs": { "inputs": {
"systems": "systems_2" "systems": "systems"
}, },
"locked": { "locked": {
"lastModified": 1731533236, "lastModified": 1791914995,
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", "narHash": "sha256-Zf/xfQEAasnwnmEfHqW/4hjDE/s44yn2hD4RuVIZRjA=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", "rev": "b7a79d3fea1e214f6d668d521cecec0c01e26544",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -63,34 +38,13 @@
"type": "github" "type": "github"
} }
}, },
"home-manager": {
"inputs": {
"nixpkgs": [
"agenix",
"nixpkgs"
]
},
"locked": {
"lastModified": 1745494811,
"narHash": "sha256-YZCh2o9Ua1n9uCvrvi5pRxtuVNml8X2a03qIFfRKpFs=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "abfad3d2958c9e6300a883bd443512c55dfeb1be",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "home-manager",
"type": "github"
}
},
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1790328731, "lastModified": 1791935857,
"narHash": "sha256-Rvx1gJOPmsXVvislwhD16OSbqYjYD/jnLEdY4w77few=", "narHash": "sha256-Zrhxwe8+HMRiDpjsOIoOIUvK6b8HCp3FL5R50N901hU=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "392b320636af0527be6f300a8f57e5ab5f43ba38", "rev": "952dd4355e1932709b993aa31de5e5b7bbe114f7",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -121,21 +75,6 @@
"repo": "default", "repo": "default",
"type": "github" "type": "github"
} }
},
"systems_2": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
} }
}, },
"root": "root", "root": "root",

View file

@ -21,7 +21,6 @@
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
agenix.nixosModules.default agenix.nixosModules.default
{ environment.systemPackages = [ (agenix.packages.x86_64-linux.default) ]; }
{ {
age.secrets = { age.secrets = {
matrix_registration_shared_secret = { matrix_registration_shared_secret = {
@ -57,7 +56,6 @@
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
agenix.nixosModules.default agenix.nixosModules.default
{ environment.systemPackages = [ (agenix.packages.x86_64-linux.default) ]; }
{ {
age.secrets.hedgedoc_db_password = { age.secrets.hedgedoc_db_password = {
file = ./secrets/hedgedoc_db_password.age; file = ./secrets/hedgedoc_db_password.age;
@ -73,7 +71,6 @@
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
agenix.nixosModules.default agenix.nixosModules.default
{ environment.systemPackages = [ (agenix.packages.x86_64-linux.default) ]; }
{ {
age.secrets = { age.secrets = {
www-staging-htpasswd = { www-staging-htpasswd = {
@ -97,7 +94,6 @@
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
agenix.nixosModules.default agenix.nixosModules.default
{ environment.systemPackages = [ (agenix.packages.x86_64-linux.default) ]; }
{ {
age.secrets = { age.secrets = {
grafana_secret_key = { grafana_secret_key = {
@ -139,7 +135,6 @@
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
agenix.nixosModules.default agenix.nixosModules.default
{ environment.systemPackages = [ (agenix.packages.x86_64-linux.default) ]; }
{ {
age.secrets = { age.secrets = {
postgres-matrix-synapse = { postgres-matrix-synapse = {
@ -181,7 +176,6 @@
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
agenix.nixosModules.default agenix.nixosModules.default
{ environment.systemPackages = [ (agenix.packages.x86_64-linux.default) ]; }
{ {
age.secrets = { age.secrets = {
#radicale-htpasswd = { #radicale-htpasswd = {
@ -199,7 +193,6 @@
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
agenix.nixosModules.default agenix.nixosModules.default
{ environment.systemPackages = [ (agenix.packages.x86_64-linux.default) ]; }
{ {
age.secrets = { age.secrets = {
postgres-forgejo = { postgres-forgejo = {
@ -247,7 +240,6 @@
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
agenix.nixosModules.default agenix.nixosModules.default
{ environment.systemPackages = [ (agenix.packages.x86_64-linux.default) ]; }
{ {
age.secrets = { age.secrets = {
forgejo-runner-token = { forgejo-runner-token = {

View file

@ -45,7 +45,7 @@
}; };
container = { container = {
enable_ipv6 = true; enable_ipv6 = true;
network = "forgejo"; network = "default";
privileged = true; privileged = true;
force_pull = true; force_pull = true;
docker_host = "unix:///run/podman/podman.sock"; docker_host = "unix:///run/podman/podman.sock";

View file

@ -2,6 +2,12 @@
let let
# TODO: mkVHost # TODO: mkVHost
aliasDir = url: path: {
"${url}" = {
return = "301 ${url}/";
};
"${url}/".alias = "${path}/";
};
in in
{ {
imports = [ imports = [
@ -42,13 +48,6 @@ in
index = "index.html"; index = "index.html";
tryFiles = "$uri $uri/ $uri.html =404"; tryFiles = "$uri $uri/ $uri.html =404";
}; };
"/twentyyears/".alias = "/srv/http/twentyyears/";
"/thirtytwoyears/".alias = "/srv/http/thirtytwoyears/";
# RFC8805
"/noc/".alias = "/srv/http/noc/";
"/static/".alias = "/srv/http/static/";
# RFC8805 new location
"/.well-known/loc/".alias = "/srv/http/noc/";
"= /.well-known/security.txt" = { "= /.well-known/security.txt" = {
alias = "/srv/http/security.txt"; alias = "/srv/http/security.txt";
extraConfig = '' extraConfig = ''
@ -90,7 +89,15 @@ in
default_type text/calendar; default_type text/calendar;
''; '';
}; };
}; }
// aliasDir "/twentyyears" "/srv/http/twentyyears"
// aliasDir "/thirtytwoyears" "/srv/http/thirtytwoyears"
// aliasDir "/kik" "/srv/http/kik"
# RFC8805
// aliasDir "/noc" "/srv/http/noc"
// aliasDir "/static" "/srv/http/static"
# RFC8805 new location
// aliasDir "/.well-known/loc" "/srv/http/noc";
}; };
"staging.${config.networking.domain}" = { "staging.${config.networking.domain}" = {
quic = true; quic = true;