Compare commits
5 Commits
131a553a84
...
3b229aff13
Author | SHA1 | Date | |
---|---|---|---|
|
3b229aff13 | ||
|
c01cff70b9 | ||
362a6fcf7f | |||
1e22756876 | |||
6fced94cb5 |
32
flake.lock
32
flake.lock
@ -9,11 +9,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1694734964,
|
"lastModified": 1694793763,
|
||||||
"narHash": "sha256-FvBMAbl6EMFVODzgaEwQ9z7tfGMQvDeyc0YZ5ArPYPE=",
|
"narHash": "sha256-y6gTE1C9mIoSkymRYyzCmv62PFgy+hbZ5j8fuiQK5KI=",
|
||||||
"owner": "ryantm",
|
"owner": "ryantm",
|
||||||
"repo": "agenix",
|
"repo": "agenix",
|
||||||
"rev": "20deb735cc405831ba04a0088fecb3887aa255c0",
|
"rev": "572baca9b0c592f71982fca0790db4ce311e3c75",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -91,11 +91,11 @@
|
|||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1687119570,
|
"lastModified": 1694793618,
|
||||||
"narHash": "sha256-tZ6hctUdlZzsdg4WA4Fv7C5bNGnotYp0QT+s3rvlIKw=",
|
"narHash": "sha256-f3LZHT3shYZHFzxV9cJASwDYYyeV7cVBr/DyQiha4Yw=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "cc43776e6dd7eb94962e9f23b8e8282d34597a75",
|
"rev": "da0df6bab4300ad3782eae0d5c5bd917c2e6fe19",
|
||||||
"revCount": 39,
|
"revCount": 40,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.clerie.de/clerie/fieldpoc.git"
|
"url": "https://git.clerie.de/clerie/fieldpoc.git"
|
||||||
},
|
},
|
||||||
@ -215,11 +215,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-krypton": {
|
"nixpkgs-krypton": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1694422566,
|
"lastModified": 1694767346,
|
||||||
"narHash": "sha256-lHJ+A9esOz9vln/3CJG23FV6Wd2OoOFbDeEs4cMGMqc=",
|
"narHash": "sha256-5uH27SiVFUwsTsqC5rs3kS7pBoNhtoy9QfTP9BmknGk=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "3a2786eea085f040a66ecde1bc3ddc7099f6dbeb",
|
"rev": "ace5093e36ab1e95cb9463863491bee90d5a4183",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -231,11 +231,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-schule": {
|
"nixpkgs-schule": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1694422566,
|
"lastModified": 1694767346,
|
||||||
"narHash": "sha256-lHJ+A9esOz9vln/3CJG23FV6Wd2OoOFbDeEs4cMGMqc=",
|
"narHash": "sha256-5uH27SiVFUwsTsqC5rs3kS7pBoNhtoy9QfTP9BmknGk=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "3a2786eea085f040a66ecde1bc3ddc7099f6dbeb",
|
"rev": "ace5093e36ab1e95cb9463863491bee90d5a4183",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -247,11 +247,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1694422566,
|
"lastModified": 1694767346,
|
||||||
"narHash": "sha256-lHJ+A9esOz9vln/3CJG23FV6Wd2OoOFbDeEs4cMGMqc=",
|
"narHash": "sha256-5uH27SiVFUwsTsqC5rs3kS7pBoNhtoy9QfTP9BmknGk=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "3a2786eea085f040a66ecde1bc3ddc7099f6dbeb",
|
"rev": "ace5093e36ab1e95cb9463863491bee90d5a4183",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -21,39 +21,11 @@
|
|||||||
|
|
||||||
networking.hostName = "aluminium";
|
networking.hostName = "aluminium";
|
||||||
|
|
||||||
networking.iproute2.enable = true;
|
services.wg-clerie = {
|
||||||
networking.iproute2.rttablesExtraConfig = ''
|
|
||||||
200 wg-clerie
|
|
||||||
'';
|
|
||||||
|
|
||||||
petabyte.policyrouting = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
rules6 = [
|
ipv6s = [ "2a01:4f8:c0c:15f1::8106/128" ];
|
||||||
{ rule = "from 2a01:4f8:c0c:15f1::8106/128 lookup wg-clerie"; prio = 20000; }
|
ipv4s = [ "10.20.30.106/32" ];
|
||||||
{ rule = "from 2a01:4f8:c0c:15f1::8106/128 unreachable"; prio = 20001; }
|
privateKeyFile = "/var/src/secrets/wireguard/wg-clerie";
|
||||||
];
|
|
||||||
rules4 = [
|
|
||||||
{ rule = "from 10.20.30.106/32 lookup wg-clerie"; prio = 20000; }
|
|
||||||
{ rule = "from 10.20.30.106/32 unreachable"; prio = 20001; }
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
networking.wireguard.enable = true;
|
|
||||||
networking.wireguard.interfaces = {
|
|
||||||
wg-clerie = {
|
|
||||||
ips = [ "2a01:4f8:c0c:15f1::8106/128" "10.20.30.106/32" ];
|
|
||||||
table = "wg-clerie";
|
|
||||||
peers = [
|
|
||||||
{
|
|
||||||
endpoint = "vpn.clerie.de:51820";
|
|
||||||
persistentKeepalive = 25;
|
|
||||||
allowedIPs = [ "0.0.0.0/0" "::/0" "10.20.30.0/24" "2a01:4f8:c0c:15f1::/113" ];
|
|
||||||
publicKey = "2p1Jqs3bkXbXHFWE6vp1yxHIFoUaZQEARS2nJzbkuBA=";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
privateKeyFile = "/var/src/secrets/wireguard/wg-clerie";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
clerie.monitoring = {
|
clerie.monitoring = {
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
./chaosevents.nix
|
./chaosevents.nix
|
||||||
./clerie.nix
|
./clerie.nix
|
||||||
./drop.nix
|
./drop.nix
|
||||||
|
./fieldpoc.nix
|
||||||
./gitea.nix
|
./gitea.nix
|
||||||
./iot-data.nix
|
./iot-data.nix
|
||||||
./ip.nix
|
./ip.nix
|
||||||
@ -18,7 +19,6 @@
|
|||||||
./milchinsel.nix
|
./milchinsel.nix
|
||||||
./mitel-ommclient2.nix
|
./mitel-ommclient2.nix
|
||||||
./ping.nix
|
./ping.nix
|
||||||
./prediger.nix
|
|
||||||
./public.nix
|
./public.nix
|
||||||
./radicale.nix
|
./radicale.nix
|
||||||
./reichartstrasse.nix
|
./reichartstrasse.nix
|
||||||
|
19
hosts/web-2/fieldpoc.nix
Normal file
19
hosts/web-2/fieldpoc.nix
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
{ ... }: {
|
||||||
|
services.update-from-hydra.paths.fieldpoc = {
|
||||||
|
enable = true;
|
||||||
|
hydraUrl = "https://hydra.clerie.de";
|
||||||
|
hydraProject = "clerie";
|
||||||
|
hydraJobset = "fieldpoc";
|
||||||
|
hydraJob = "packages.x86_64-linux.docs";
|
||||||
|
nixStoreUri = "https://nix-cache.clerie.de";
|
||||||
|
resultPath = "/srv/fieldpoc";
|
||||||
|
};
|
||||||
|
|
||||||
|
services.nginx.virtualHosts = {
|
||||||
|
"fieldpoc.clerie.de" = {
|
||||||
|
enableACME = true;
|
||||||
|
forceSSL = true;
|
||||||
|
root = "/srv/fieldpoc";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
@ -1,25 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
services.nginx.virtualHosts = {
|
|
||||||
"prediger.riese.space" = {
|
|
||||||
enableACME = true;
|
|
||||||
forceSSL = true;
|
|
||||||
root = pkgs.fetchgit {
|
|
||||||
url = "https://git.clerie.de/clerie/prediger.riese.space.git";
|
|
||||||
rev = "7f51e884ccf8a258838adb1d825bc51eeef2f475";
|
|
||||||
sha256 = "sha256-tL+k9l0fX4dc971y4EWGM++BvjfnvRAtU/LvS2QYANU=";
|
|
||||||
};
|
|
||||||
locations."/map/" = {
|
|
||||||
alias = pkgs.fetchgit {
|
|
||||||
url = "https://git.clerie.de/quiribi/Prediger-workadventure.git";
|
|
||||||
rev = "304850367aad275c3410005580313dac7fe24788";
|
|
||||||
sha256 = "sha256-t6C7k5p6ZKfQedumTqxEmGYQqgaE3OiK5q41dDWnz/Y=";
|
|
||||||
} + "/";
|
|
||||||
extraConfig = ''
|
|
||||||
add_header Access-Control-Allow-Origin *;
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user