diff --git a/hosts/sakura/hardware-configuration.nix b/hosts/sakura/hardware-configuration.nix index fc77326..d079188 100644 --- a/hosts/sakura/hardware-configuration.nix +++ b/hosts/sakura/hardware-configuration.nix @@ -16,6 +16,10 @@ device = "/dev/disk/by-uuid/db3e4722-35a6-44fb-8e4d-a75166b845cb"; fsType = "ext4"; }; + fileSystems."/home/notoh/justlog/logs" = { + device = "192.168.1.199:/mnt/Sutoreji/twitchlogs"; + fsType = "nfs"; + }; swapDevices = [ {device = "/dev/disk/by-uuid/c5afba13-f1af-4e7f-994b-f565c52d92fc";} diff --git a/hosts/sakura/services/default.nix b/hosts/sakura/services/default.nix index 606c771..9d80170 100644 --- a/hosts/sakura/services/default.nix +++ b/hosts/sakura/services/default.nix @@ -9,5 +9,6 @@ ./conduit.nix ./tailscale.nix ./searxng.nix + ./justlog.nix ]; } diff --git a/hosts/sakura/services/justlog.nix b/hosts/sakura/services/justlog.nix new file mode 100644 index 0000000..eae43b0 --- /dev/null +++ b/hosts/sakura/services/justlog.nix @@ -0,0 +1,11 @@ +{...}: { + networking.firewall.allowedTCPPorts = [8025]; + virtualisation.oci-containers.containers.justlog = { + image = "ghcr.io/gempir/justlog"; + ports = ["8025:8025"]; + volumes = [ + "/home/notoh/justlog/config.json:/etc/justlog.json" + "/home/notoh/justlog/logs:/logs" + ]; + }; +}