commit 0f8e4d9b289b645af7ee2401122040d4c131c1b7
parent 96e09b36f48a5bc52c93b0babcfef52387cc9eb4
Author: Leah (ctucx) <git@ctu.cx>
Date: Tue, 17 Oct 2023 09:27:41 +0200
parent 96e09b36f48a5bc52c93b0babcfef52387cc9eb4
Author: Leah (ctucx) <git@ctu.cx>
Date: Tue, 17 Oct 2023 09:27:41 +0200
configurations/common/syncthing-config: add share "youtube"
3 files changed, 76 insertions(+), 0 deletions(-)
diff --git a/configurations/common/syncthing-config.nix b/configurations/common/syncthing-config.nix @@ -28,6 +28,7 @@ let "ctucx-music-orig" "ctucx-media" "Blechelse" + "YouTube" ]; }; @@ -169,5 +170,17 @@ in { }; }; + "${dataDir}/YouTube" = rec { + enable = isShareEnabled "${id}"; + id = "YouTube"; + label = "YouTube"; + devices = (lib.mkMerge [ (filterCurrentHost (shareDeviceNames "${id}")) isaDeviceNames]); + versioning.type = "trashcan"; + versioning.params = { + cleanoutDays = "3"; + }; + }; + + }; }
diff --git a/pkgs/masto-fe-standalone/default.nix b/pkgs/masto-fe-standalone/default.nix @@ -0,0 +1,49 @@ +{ applyPatches, fetchgit, fetchYarnDeps, lib, stdenv, nodejs, yarn, yarn2nix-moretea, ... }: + +stdenv.mkDerivation rec { + pname = "mastoFE-standalone"; + version = "0.0.0-${builtins.substring 0 6 rev}"; + rev = "65325a63fbcb456c1a9ea5d3e4684efcfde453b3"; + + src = applyPatches { + src = fetchgit { + url = "https://iceshrimp.dev/iceshrimp/masto-fe-standalone"; + inherit rev; + sha256 = "sha256-7irOp5HMLNC6/rnLArjjvIF5p2NJ09TXx0QdKHS44qY"; + }; + patches = []; + }; + + yarnOfflineCache = fetchYarnDeps { + yarnLock = "${src}/yarn.lock"; + hash = "sha256-qg6hQNMGL7M+FOI89vIz+l3Xxd69LuWnbxuUw/on054="; + }; + + nativeBuildInputs = [ + nodejs + yarn + yarn2nix-moretea.fixup_yarn_lock + ]; + + configurePhase = '' + export HOME=$(mktemp -d) + ''; + + buildPhase = '' + export NODE_OPTIONS=--openssl-legacy-provider + + yarn config --offline set yarn-offline-mirror ${yarnOfflineCache} + fixup_yarn_lock yarn.lock + yarn install --offline \ + --frozen-lockfile \ + --ignore-engines --ignore-scripts + patchShebangs . + + yarn build:production + ''; + + installPhase = '' + cp -R ./public $out + ''; + +}+ \ No newline at end of file
diff --git a/secrets/trabbi/matrix-synapse/s3_secrets.age b/secrets/trabbi/matrix-synapse/s3_secrets.age @@ -0,0 +1,13 @@ +-----BEGIN AGE ENCRYPTED FILE----- +YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSB4blFsZ21yZ0F6eU45bE85 +RzJzaDAzdHhRZHZUUXlwUGZ5N0ZidE52SUZ3Cko1enJ4TUQ3UW9TUkNsZHVBZ3NC +T3ZseExNc2hVZTlDekNHMWVucEtZcVUKLT4gc3NoLWVkMjU1MTkgVjB1VXJ3IHdU +ZTVKcEI5MXkwZ3Fwejlvcnl1NTlQbXIwdmFHbW0xZWZ4VUFBa0pTWGsKdStpSmtJ +V1F1cXlHVzIyOVBtVUcvcTBFVnhQYTdRRmcxWUY0aTRuOFlscwotPiBkdzt0RiYt +Z3JlYXNlIFlKV0J+IwpDbEM2UGdWL2YzVDhFQ1k4V0NobXZ1U2dFLy91MDFIQ2JB +Ci0tLSBaaXV0SzB6dlkwTEdHYTRQeUtCMXA1b2YxVkk0ZHJqSGN6anlENVBRN0Nz +Chj5SQiljRoqg3okaleuHbs9HKU5Q1qwsoKNhiuzo00KbnWncmehwodd1gFWinTA +5Io+xqJ+sXJLrCsoxlVnZY20wZvt6MMgDRgp3XjWzWDc+csO7YrwvXAhgUYwJ5ea +kRw2QT2R6HvU/p+DdN4NhJ8VraliqdE17V1YyhsEcUyOvb7cjt43scFVg1OPFEMH +RFdkavOcSBGYsFXGE6XwafjNs9Q= +-----END AGE ENCRYPTED FILE-----