From 5da0de61a1c7da058c13dba0e5bc85115a6ffdb6 Mon Sep 17 00:00:00 2001 From: materus Date: Sat, 6 Apr 2024 01:32:24 +0200 Subject: [PATCH] valkyrie: add web archive and steamladder curl request timer --- .../host/valkyrie/secrets/default.nix | 3 + .../host/valkyrie/secrets/private/default.nix | Bin 7675 -> 7694 bytes .../host/valkyrie/secrets/private/tosave.nix | Bin 0 -> 2267 bytes .../host/valkyrie/secrets/secrets.yaml | 7 +- .../host/valkyrie/services/default.nix | 2 + .../host/valkyrie/services/saveyoursoul.nix | 75 ++++++++++++++++++ 6 files changed, 85 insertions(+), 2 deletions(-) create mode 100644 configurations/host/valkyrie/secrets/private/tosave.nix create mode 100644 configurations/host/valkyrie/services/saveyoursoul.nix diff --git a/configurations/host/valkyrie/secrets/default.nix b/configurations/host/valkyrie/secrets/default.nix index df5e536..f290f4d 100644 --- a/configurations/host/valkyrie/secrets/default.nix +++ b/configurations/host/valkyrie/secrets/default.nix @@ -16,6 +16,9 @@ sops.secrets.spotify-client-secret = {}; sops.secrets.youtube-api = {}; sops.secrets.certs = {}; + sops.secrets.steamladder-api = {}; + sops.secrets.webarchive-accesskey = {}; + sops.secrets.webarchive-secretkey = {}; services.openssh.hostKeys = [ { diff --git a/configurations/host/valkyrie/secrets/private/default.nix b/configurations/host/valkyrie/secrets/private/default.nix index 03ab97faed0e56c83ffb2321fb098cffd7b9239a..28043274b94e19dad38d02331e640e7d9a792d32 100644 GIT binary patch literal 7694 zcmV+p9`WG-M@dveQdv+`07kUjC~K8Kv{+cO>3+moLy+8@%p(NxVj#?c_A9FQOycVs z>7kxK1(dBnlJd_N-6s$~lJuFEt=Os+T4iemw}%2!V|aLdHZG!D4%Yqf)M6k6A;s zUA}B^I-wPQXQ+0j7eg?WO4?&CakZ_}nIpR^Ys#t4y9FW?2GgIf3=O>CIg2Oj5ey=N z++XdQjVEj4kkIuPDt9gMu!Yh`f_AyTYaO5P0Zrl$+7p0YE>-T z_HXJBb$C` z>O%_a7nIxy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~)I#*c&Dq=oC%Wl200l)qygGSME7aqeD zd!da&`>W~WDq1;+mc@;cD}LMHKG8{WIacc3n_Fgrdw=ajBKu)Bh=_#qp06_Fe&3h= z$U&;_(s%Y8b?H+I9;$#r9!glts1i1M!AwiG7%Vu6Q5?N-CH>V{)mS7<;9d9$Mc?kA ze^t5m5f^of1X|%8qdKN86)W1W8=`<|5onG8o=LO>@}>AN8#B@~1TZjemqLCMPkw7&M(s@1;k_cPWznPd%qiuy*)gKo*6qX ziRZNNXCk&i%20|eC8?a(OMU;n%$dE;c6Bqn@4+>h9P*6dqVzB6nS{@}dJBc<>0Ccq zM14|qRE2flFRGVUkODBw(=jQVWtyJxgtSHJOpJpUPhHa2u9(~D9PfJ6CaLmODKU>^ p`h&hH6WDQMqx}ZBV9i!1MT?qy+GGSpg0HfC7897SRA5Uy{>F9r3;h59 diff --git a/configurations/host/valkyrie/secrets/private/tosave.nix b/configurations/host/valkyrie/secrets/private/tosave.nix new file mode 100644 index 0000000000000000000000000000000000000000..f17afb55eef23ba07fce6b81eab5b3ec138b7144 GIT binary patch literal 2267 zcmV<12qgCaM@dveQdv+`03nOm(wt200J<=B% zk-<`3TOhTK#h-#^Nr`Ip3zE|K%{(DfDOHR+<&a2&XH0cc8{T`FD+L&eOQ_2mOjEZp zMJw-4{Zsq6$GeX|*u?WdxLHUphP>XZ&rqqHuq7kT%YR49n*6ymzQ)|DNw7-0Ih^_x%f_)iw+k3$c9&uI8wUEeyro z*=o@a93e!RLbXt+7ug+0Pdx^kvuCFTNb745+KI=Y1o>*53k8{mRC?8J ze`FIECB+!j6l9pM14^+XU2IVh*oeYMxTUY2KdeQBHGu?WdU`}2lc?WF2m*)BGxJQg)$m;D0^!K&sO81vda~3+YSjU8L(9;dZMW)Ld7i?0(wuQ z`<lFfg+9y--T(e0sH__5zh!qS{Dk~xPd zq3Fa)U-2gTsZwvvSkLgq;W}MSSWbd>dN9qgPe(ach?&ZIbOqw`zUs}57 z%sB3Fbl;9no!1t*U@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1kT18kw948QrV) zTou5?l7thCQmQvGw<= pYY<8JPq>vIQTa9=ABeQKA_#8xI$c;65+Ty>NFoVlDo&m>FxJa}XCeRq literal 0 HcmV?d00001 diff --git a/configurations/host/valkyrie/secrets/secrets.yaml b/configurations/host/valkyrie/secrets/secrets.yaml index 0fc58ec..259c9de 100644 --- a/configurations/host/valkyrie/secrets/secrets.yaml +++ b/configurations/host/valkyrie/secrets/secrets.yaml @@ -3,6 +3,9 @@ discord-token: ENC[AES256_GCM,data:JQ/6MJvBlJpKzs/L0hFB1LPpQSfJvDdEB6YerVZyDqGo7 spotify-client-id: ENC[AES256_GCM,data:WK7CJGw6mtIG3Jfp59cWx3ool4z1P09TvHcpbOQ2JV0=,iv:EaJ5ecXdmx0Ky+43xZITM811IOo4EisvPSyogXrJXng=,tag:NYTI4vLsWGa695CJ+TIgbw==,type:str] spotify-client-secret: ENC[AES256_GCM,data:TnR+zLLklTfzMdR4woaZWuMVJQ9VIYsFM588GRO6WCY=,iv:cYiqw8ZdMgLeug4ptwPV3L+MeY6xIldfUBfiYg1mFD8=,tag:YDLh6BXFcBHnpdgM7e87wg==,type:str] youtube-api: ENC[AES256_GCM,data:qmpFlFvudS9rXQfN+Th/UrPWCW0mg5GkpMucS/01AmOnlChqtojC,iv:q3bKwI2I6BNa3L9ezKCE1fWT/vZLiJ8uzug1z2z+TWA=,tag:gKG3HTz8jp2LAFh8e8O6sg==,type:str] +steamladder-api: ENC[AES256_GCM,data:m30o5atqugwqn/WbXGkUq5GvqiIKQT0kSRQCtHc1Gxk/dC3YcbDvMw==,iv:duLKl1NvysD0XMaUOkl/6nclMQB6seXcQYkGMrm7K7Y=,tag:9dw+UH10uAdca5fVdlw1Mg==,type:str] +webarchive-accesskey: ENC[AES256_GCM,data:jdKlHsZq2Dkk1BcBfUVv5g==,iv:BXCgPb/2W57PYXxRktInz1LxSEwlw6m3xnQU4TOPMeY=,tag:kK4+InaH7K4D4n1hyGaR+w==,type:str] +webarchive-secretkey: ENC[AES256_GCM,data:nuA9G5dNtrNfbcx0G/GUTg==,iv:RRuTm4kZr5dNjBt9Zvk/NVefHCZYODmRvWAqZizKGJY=,tag:J2V0Q3BzXNWifVVvAkwYyg==,type:str] certs: ENC[AES256_GCM,data:ttmSNTTx51a3L2HTC8RnSphDLHO2OSyIgXQ0YpZGySTdu69mgEyhaiSi+IAXg/1AHKRjpFJgE4fhsLAiW78pNYb+Zg7aDL47YtABO99sTZrZnBxZo6k6itpZ3oClDch2ZALzoXChLroc0tUbZKwsfOwGe3pw9lOJZJT34AhV+BVoXDDLQcpQoxz23Baa8oxklecT6wpJ1u1nW+aAHw33gm41Vw==,iv:b0aNZwaRKBg+ipe5+19BowyFbCjZt52S738om6emYGo=,tag:lUqtcc4vVWKx/fnc19vj7A==,type:str] sops: kms: [] @@ -19,8 +22,8 @@ sops: d2dMUUh1RDB3UnpEdFJsNHpQRXFWemMKc41dlOapTsvH91QLNhdPbrzerPFakOiX J/uoZDMIhsmQxgQM7Fqxr05NywhI/ZjOtJS2bayp73O57xjjMYcyNQ== -----END AGE ENCRYPTED FILE----- - lastmodified: "2024-03-23T14:02:11Z" - mac: ENC[AES256_GCM,data:wMQCs0h/FOEe9zzaTJxrBqQh1KgEgr5J7tdBTIr4frUAUtsD6SCXQ0keVUQ1J5DYEKDTqFbXvM1IetwSKipfKscTbSt1u3hpe30f4EWqTZKRrJtJaiVozJSZ667YWRQu1uWv5VDGXfC4tosejUyJsVUkUEYDqLKEv3z/y3eNa80=,iv:i2PX9y4J1EbASCnbG1XVo+RcxbFV9VOwyRg+DKcUyVc=,tag:6BQkD8ikUHfHI4KhiC5UJA==,type:str] + lastmodified: "2024-04-05T22:42:16Z" + mac: ENC[AES256_GCM,data:KSRGzHipb58uNYaRYXAy3y+D9cBG53RGxZpNrx2gy+CHbGtkUW1SWc4PPrBwBhb6+TN0vb1zHuOB4HK4Bys/jqmvGgVkO2VKj15MTFMpF5n6w0blFM7d5bCDydHAhvXEZA/PFWq97DTI1Zxb+N/HWJlefKCzYOHHWj7i4leKNjk=,iv:88Ekp0sjEo5UTBLUyYSrkP+MbIFcCmegclJIK3+0jOQ=,tag:H/ESeQhC1PEF00RiDnamyw==,type:str] pgp: - created_at: "2024-03-21T22:55:36Z" enc: |- diff --git a/configurations/host/valkyrie/services/default.nix b/configurations/host/valkyrie/services/default.nix index 1eda642..ae57beb 100644 --- a/configurations/host/valkyrie/services/default.nix +++ b/configurations/host/valkyrie/services/default.nix @@ -5,11 +5,13 @@ ./pleroma.nix ./pihole.nix ./dcbot.nix + ./saveyoursoul.nix ]; services.adguardhome.enable = true; valkyrieService.pihole.enable = false; valkyrieService.pleroma.enable = true; valkyrieService.dcbot.enable = true; + valkyrieService.saveyoursoul.enable = true; } diff --git a/configurations/host/valkyrie/services/saveyoursoul.nix b/configurations/host/valkyrie/services/saveyoursoul.nix new file mode 100644 index 0000000..7086c0d --- /dev/null +++ b/configurations/host/valkyrie/services/saveyoursoul.nix @@ -0,0 +1,75 @@ +{ config, pkgs, lib, materusArg, ... }: +{ + options.valkyrieService.saveyoursoul.enable = materusArg.pkgs.lib.mkBoolOpt false "Enable saveyoursoul, web archive"; + + + + + config = + let + cfg = config.valkyrieService.saveyoursoul; + in + lib.mkIf cfg.enable { + systemd.timers.saveyoursoul = { + wantedBy = [ "timers.target" ]; + timerConfig = { + OnCalendar = "*-*-1,7,14,21 3:00:00"; + Persistent = true; + Unit = "saveyoursoul.service"; + }; + }; + + systemd.services.saveyoursoul = { + description = "Make curl requests to archive related things"; + path = [ pkgs.coreutils pkgs.util-linux pkgs.curl ]; + serviceConfig.Type = "oneshot"; + serviceConfig.RemainAfterExit = false; + script = '' + STEAM_IDS=( ${ builtins.foldl' (x: y: x +"\""+ y + "\" ") "" materusArg.to_save.steamids }) + EXTRA_LINKS=( ${ builtins.foldl' (x: y: x +"\""+ y + "\" ") "" materusArg.to_save.extraLinks }) + + steamladder() { + for id in ''${STEAM_IDS[@]}; do + curl -X POST -H "Authorization: Token ''$(cat ${config.sops.secrets.steamladder-api.path})" \ + "https://steamladder.com/api/v1/profile/$id/" + done; + } + + webarchive(){ + for id in ''${STEAM_IDS[@]}; do + curl -X POST -H "Accept: application/json" \ + -H "Authorization: LOW ''$(cat ${config.sops.secrets.webarchive-accesskey.path}):''$(cat ${config.sops.secrets.webarchive-secretkey.path})" \ + -d"url=https://steamcommunity.com/profiles/$id" \ + -d"capture_outlinks=1" \ + -d"capture_screenshot=on" \ + -d"capture_all=on" \ + "https://web.archive.org/save"; + sleep 180; + done; + + + for link in ''${EXTRA_LINKS[@]}; do + curl -X POST -H "Accept: application/json" \ + -H "Authorization: LOW ''$(cat ${config.sops.secrets.webarchive-accesskey.path}):''$(cat ${config.sops.secrets.webarchive-secretkey.path})" \ + -d"url=$link" \ + -d"capture_outlinks=1" \ + -d"capture_screenshot=on" \ + -d"capture_all=on" \ + "https://web.archive.org/save"; + sleep 180; + done; + + } + + + + steamladder & + webarchive + wait + ''; + }; + + }; + + +}