sakura: switch to rustlog

This commit is contained in:
notohh 2024-05-13 14:58:37 -04:00
parent adcb17f4a9
commit 860aeaf406
Signed by: notohh
GPG key ID: BD47506D475EE86D
5 changed files with 34 additions and 16 deletions

View file

@ -3,11 +3,10 @@ _: {
./hardware.nix ./hardware.nix
./services ./services
./networking.nix ./networking.nix
../common.nix
../../modules ../../modules
]; ];
services.snowflake-proxy.enable = true;
users = { users = {
users.notoh.openssh.authorizedKeys.keys = [ users.notoh.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICqAjaV2D2J8ln4n39ZvszCF5Jql+0IaSpFCJlzDSLv6 sakura" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICqAjaV2D2J8ln4n39ZvszCF5Jql+0IaSpFCJlzDSLv6 sakura"

View file

@ -27,8 +27,8 @@
device = "/dev/disk/by-uuid/db3e4722-35a6-44fb-8e4d-a75166b845cb"; device = "/dev/disk/by-uuid/db3e4722-35a6-44fb-8e4d-a75166b845cb";
fsType = "ext4"; fsType = "ext4";
}; };
"/home/notoh/justlog/logs" = { "/home/notoh/rustlog/clickhouse" = {
device = "192.168.1.199:/mnt/Sutoreji/twitchlogs"; device = "192.168.1.199:/mnt/Sutoreji/twitchlogs-rustlog";
fsType = "nfs"; fsType = "nfs";
}; };
"/nas/restic" = { "/nas/restic" = {

View file

@ -9,6 +9,6 @@
./vaultwarden.nix ./vaultwarden.nix
# ./conduit.nix # ./conduit.nix
./tailscale.nix ./tailscale.nix
./justlog.nix ./rustlog.nix
]; ];
} }

View file

@ -1,11 +0,0 @@
_: {
networking.firewall.allowedTCPPorts = [8025];
virtualisation.oci-containers.containers.justlog = {
image = "ghcr.io/gempir/justlog@sha256:44b2426c0057b44019b78b1daece13dac2356ff68f9f506f067c8c4c92f54f22";
ports = ["8025:8025"];
volumes = [
"/home/notoh/justlog/config.json:/etc/justlog.json"
"/home/notoh/justlog/logs:/logs"
];
};
}

View file

@ -0,0 +1,30 @@
{lib, ...}: {
networking.firewall.allowedTCPPorts = [8025 8123];
systemd.services = {
docker-rustlog.serviceConfig = {PrivateNetwork = lib.mkForce false;};
};
virtualisation.oci-containers.containers = {
clickhouse = {
image = "clickhouse/clickhouse-server:latest";
environment = {
CLICKHOUSE_DB = "rustlog";
CLICKHOUSE_HOST = "192.168.1.25";
};
extraOptions = ["--network=host"];
volumes = [
"/home/notoh/rustlog/clickhouse:/var/lib/clickhouse:rw"
];
};
rustlog = {
image = "ghcr.io/boring-nick/rustlog:master";
ports = ["8025:8025"];
volumes = [
"/home/notoh/rustlog/config.json:/config.json"
];
dependsOn = ["clickhouse"];
extraOptions = ["--network=host"];
};
};
}