Compare commits
4 commits
417d65062b
...
ef731dca18
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ef731dca18 | ||
|
|
254b7bca19 | ||
|
|
d55f7dc490 | ||
|
|
18b97a9285 |
5 changed files with 40 additions and 27 deletions
33
flake.lock
generated
33
flake.lock
generated
|
|
@ -503,22 +503,6 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_3": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1764560356,
|
|
||||||
"narHash": "sha256-M5aFEFPppI4UhdOxwdmceJ9bDJC4T6C6CzCK1E2FZyo=",
|
|
||||||
"owner": "nixos",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "6c8f0cca84510cc79e09ea99a299c9bc17d03cb6",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nixos",
|
|
||||||
"ref": "nixos-25.05",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nur": {
|
"nur": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-parts": [
|
"flake-parts": [
|
||||||
|
|
@ -634,14 +618,19 @@
|
||||||
"nix-filter": [
|
"nix-filter": [
|
||||||
"nix-filter"
|
"nix-filter"
|
||||||
],
|
],
|
||||||
"nixpkgs": "nixpkgs_2"
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"treefmt-nix": [
|
||||||
|
"treefmt-nix"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1757763404,
|
"lastModified": 1764875421,
|
||||||
"narHash": "sha256-a1h+58wDOtbQXrHoZwLwB7PhXwFhBXRHhNRhAQGq/oY=",
|
"narHash": "sha256-ZO9wiokPhropwsU3BfIgjm1bc59SIyqrfjfnFCM2Q68=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "07a5fbca27ec941c841ad93f2ac65bc529225a51",
|
"rev": "fa892558f123c5d5395663fa666466c73b997245",
|
||||||
"revCount": 46,
|
"revCount": 48,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.berlin.ccc.de/servicepoint/servicepoint-cli.git"
|
"url": "https://git.berlin.ccc.de/servicepoint/servicepoint-cli.git"
|
||||||
},
|
},
|
||||||
|
|
@ -658,7 +647,7 @@
|
||||||
"nix-filter": [
|
"nix-filter": [
|
||||||
"nix-filter"
|
"nix-filter"
|
||||||
],
|
],
|
||||||
"nixpkgs": "nixpkgs_3"
|
"nixpkgs": "nixpkgs_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1757763091,
|
"lastModified": 1757763091,
|
||||||
|
|
|
||||||
|
|
@ -41,10 +41,10 @@
|
||||||
servicepoint-cli = {
|
servicepoint-cli = {
|
||||||
url = "git+https://git.berlin.ccc.de/servicepoint/servicepoint-cli.git";
|
url = "git+https://git.berlin.ccc.de/servicepoint/servicepoint-cli.git";
|
||||||
inputs = {
|
inputs = {
|
||||||
# TODO: update flake to 25.11
|
nixpkgs.follows = "nixpkgs";
|
||||||
# nixpkgs.follows = "nixpkgs";
|
|
||||||
naersk.follows = "naersk";
|
naersk.follows = "naersk";
|
||||||
nix-filter.follows = "nix-filter";
|
nix-filter.follows = "nix-filter";
|
||||||
|
treefmt-nix.follows = "treefmt-nix";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
servicepoint-simulator = {
|
servicepoint-simulator = {
|
||||||
|
|
@ -277,6 +277,7 @@
|
||||||
self.nixosModules.globalinstalls
|
self.nixosModules.globalinstalls
|
||||||
self.nixosModules.lix-is-nix
|
self.nixosModules.lix-is-nix
|
||||||
self.nixosModules.openssh
|
self.nixosModules.openssh
|
||||||
|
self.nixosModules.prometheus-node
|
||||||
self.nixosModules.systemd-boot
|
self.nixosModules.systemd-boot
|
||||||
self.nixosModules.tailscale
|
self.nixosModules.tailscale
|
||||||
zerforschen-plus.nixosModules.default
|
zerforschen-plus.nixosModules.default
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
# https://wiki.nixos.org/wiki/Forgejo
|
# https://wiki.nixos.org/wiki/Forgejo
|
||||||
|
|
||||||
services.gitea-actions-runner = {
|
services.gitea-actions-runner = {
|
||||||
package = pkgs.forgejo-actions-runner;
|
package = pkgs.forgejo-runner;
|
||||||
instances.default = {
|
instances.default = {
|
||||||
enable = true;
|
enable = true;
|
||||||
name = "cccb";
|
name = "cccb";
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
let
|
let
|
||||||
blog-domain-socket = "/run/nginx/blog.sock";
|
blog-domain-socket = "/run/nginx/blog.sock";
|
||||||
anubis-domain-socket = "/run/anubis/anubis-blog/anubis.sock";
|
anubis-domain-socket = "/run/anubis/anubis-blog/anubis.sock";
|
||||||
|
anubis-metrics-socket = "/run/anubis/anubis-blog/anubis-metrics.sock";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
security.acme = {
|
security.acme = {
|
||||||
|
|
@ -26,8 +27,9 @@ in
|
||||||
"zerforschen.plus" = {
|
"zerforschen.plus" = {
|
||||||
addSSL = true;
|
addSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
locations."/" = {
|
locations = {
|
||||||
proxyPass = "http://unix:" + anubis-domain-socket;
|
"/".proxyPass = "http://unix:" + anubis-domain-socket;
|
||||||
|
"/_metrics".proxyPass = "http://unix:" + anubis-metrics-socket;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -47,6 +49,7 @@ in
|
||||||
settings = {
|
settings = {
|
||||||
BIND = anubis-domain-socket;
|
BIND = anubis-domain-socket;
|
||||||
TARGET = "unix://" + blog-domain-socket;
|
TARGET = "unix://" + blog-domain-socket;
|
||||||
|
METRICS_BIND = anubis-metrics-socket;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
20
nixosModules/prometheus-node.nix
Normal file
20
nixosModules/prometheus-node.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
{
|
||||||
|
services.prometheus.exporters = {
|
||||||
|
node = {
|
||||||
|
enable = true;
|
||||||
|
openFirewall = true;
|
||||||
|
port = 9190;
|
||||||
|
enabledCollectors = [
|
||||||
|
# keep-sorted start
|
||||||
|
"cgroups"
|
||||||
|
"interrupts"
|
||||||
|
"softirqs"
|
||||||
|
"swap"
|
||||||
|
"systemd"
|
||||||
|
"tcpstat"
|
||||||
|
"wifi"
|
||||||
|
# keep-sorted end
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue