From 948367ace96beafccce0a000e903e73f9da6e272 Mon Sep 17 00:00:00 2001 From: dawn <90008@gaze.systems> Date: Thu, 18 Dec 2025 08:10:11 +0300 Subject: [PATCH] chernobog: add clickee service --- _sources/generated.json | 20 ++++++++++++++++++++ _sources/generated.nix | 14 ++++++++++++++ hosts/trimounts/modules/clickee-proxy.nix | 3 +++ hosts/trimounts/modules/website.nix | 2 +- nvfetcher.toml | 4 ++++ pkgs-set/pkgs/clickee.nix | 1 + users/mayer/default.nix | 1 + users/modules/clickee/default.nix | 14 ++++++++++++++ 8 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 pkgs-set/pkgs/clickee.nix create mode 100644 users/modules/clickee/default.nix diff --git a/_sources/generated.json b/_sources/generated.json index acfe335..8053f23 100644 --- a/_sources/generated.json +++ b/_sources/generated.json @@ -40,6 +40,26 @@ }, "version": "16d0e0320c98e26c0f8fb6d1304cdb91edabd7ab" }, + "clickee": { + "cargoLocks": null, + "date": "2025-09-14", + "extract": null, + "name": "clickee", + "passthru": null, + "pinned": false, + "src": { + "deepClone": false, + "fetchSubmodules": false, + "leaveDotGit": false, + "name": null, + "rev": "ca379a35ac60cc80fa4bf68a27ee0c30724ad324", + "sha256": "sha256-NuXYKiCzicWJxwHg4mQYYMUhOd83o+cYjqrUiSKjDEs=", + "sparseCheckout": [], + "type": "git", + "url": "https://tangled.org/@ptr.pet/clickee" + }, + "version": "ca379a35ac60cc80fa4bf68a27ee0c30724ad324" + }, "clickee-proxy": { "cargoLocks": null, "date": "2025-09-15", diff --git a/_sources/generated.nix b/_sources/generated.nix index 874ea7e..2931ce3 100644 --- a/_sources/generated.nix +++ b/_sources/generated.nix @@ -27,6 +27,20 @@ }; date = "2025-12-10"; }; + clickee = { + pname = "clickee"; + version = "ca379a35ac60cc80fa4bf68a27ee0c30724ad324"; + src = fetchgit { + url = "https://tangled.org/@ptr.pet/clickee"; + rev = "ca379a35ac60cc80fa4bf68a27ee0c30724ad324"; + fetchSubmodules = false; + deepClone = false; + leaveDotGit = false; + sparseCheckout = [ ]; + sha256 = "sha256-NuXYKiCzicWJxwHg4mQYYMUhOd83o+cYjqrUiSKjDEs="; + }; + date = "2025-09-14"; + }; clickee-proxy = { pname = "clickee-proxy"; version = "a60247a8d92e1802298fc197034d0b7b54cd90b7"; diff --git a/hosts/trimounts/modules/clickee-proxy.nix b/hosts/trimounts/modules/clickee-proxy.nix index d3ef5c0..94a06ff 100644 --- a/hosts/trimounts/modules/clickee-proxy.nix +++ b/hosts/trimounts/modules/clickee-proxy.nix @@ -26,4 +26,7 @@ in services.nginx.virtualHosts."poor.dog" = { locations."/click".proxyPass = "http://localhost:${toString port}"; }; + services.nginx.virtualHosts."ptr.pet" = { + locations."/click".proxyPass = "http://localhost:${toString port}"; + }; } diff --git a/hosts/trimounts/modules/website.nix b/hosts/trimounts/modules/website.nix index 7455df1..7aee9f5 100644 --- a/hosts/trimounts/modules/website.nix +++ b/hosts/trimounts/modules/website.nix @@ -54,7 +54,7 @@ in }; serviceConfig = { User = "website"; - ExecStart = "${pkg}/bin/website"; + ExecStart = "${pkg}/bin/eunomia"; Restart = "on-failure"; RestartSec = 5; WorkingDirectory = "/var/lib/website"; diff --git a/nvfetcher.toml b/nvfetcher.toml index bc944fd..b903d2d 100644 --- a/nvfetcher.toml +++ b/nvfetcher.toml @@ -32,6 +32,10 @@ fetch.git = "https://tangled.org/@ptr.pet/nixos-cloud-resources" src.git = "https://github.com/90-008/limbusart.git" fetch.git = "https://github.com/90-008/limbusart.git" +[clickee] +src.git = "https://tangled.org/@ptr.pet/clickee" +fetch.git = "https://tangled.org/@ptr.pet/clickee" + [clickee-proxy] src.git = "https://tangled.org/@ptr.pet/clickee-proxy" fetch.git = "https://tangled.org/@ptr.pet/clickee-proxy" diff --git a/pkgs-set/pkgs/clickee.nix b/pkgs-set/pkgs/clickee.nix new file mode 100644 index 0000000..0b666cb --- /dev/null +++ b/pkgs-set/pkgs/clickee.nix @@ -0,0 +1 @@ +{inputs, callPackage, ...}: callPackage inputs.clickee {} diff --git a/users/mayer/default.nix b/users/mayer/default.nix index 49e89bf..f7e895d 100644 --- a/users/mayer/default.nix +++ b/users/mayer/default.nix @@ -127,6 +127,7 @@ in [ "zen" "discord" + "clickee" ] ]; in diff --git a/users/modules/clickee/default.nix b/users/modules/clickee/default.nix new file mode 100644 index 0000000..87daae2 --- /dev/null +++ b/users/modules/clickee/default.nix @@ -0,0 +1,14 @@ +{ terra, ... }: +{ + systemd.user.services.clickee = { + Install = { + WantedBy = [ "default.target" ]; + }; + Service = { + ExecStart = "${terra.clickee}/bin/clickee"; + Restart = "on-failure"; + RestartSec = 5; + WorkingDirectory = "%h/.config/clickee"; + }; + }; +} -- 2.51.2