From 83825032da5761cc1d9ac02d529aa4cf9cc8235d Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Mon, 13 Nov 2023 08:42:13 +0100 Subject: [PATCH] enable peertube --- flake.nix | 1 + modules/web/peertube/default.nix | 11 +++++++++++ overlays/default.nix | 4 ++++ 3 files changed, 16 insertions(+) create mode 100644 modules/web/peertube/default.nix diff --git a/flake.nix b/flake.nix index fd6852a..110158b 100644 --- a/flake.nix +++ b/flake.nix @@ -117,6 +117,7 @@ ./modules/auto-update ./modules/services/repo-sync ./modules/services/moodle-dl + ./modules/web/peertube ./modules/users/jopejoe1 ./modules/users/root ./overlays diff --git a/modules/web/peertube/default.nix b/modules/web/peertube/default.nix new file mode 100644 index 0000000..bbc5982 --- /dev/null +++ b/modules/web/peertube/default.nix @@ -0,0 +1,11 @@ +{ ... }: + +{ + services.peertube = { + enable = true; + secrets.secretsFile = "/run/secrets/peertube"; + redis.createLocally = true; + database.createLocally = true; + localDomain = "peertube.local"; + }; +} diff --git a/overlays/default.nix b/overlays/default.nix index 6804739..ca91d5b 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -18,6 +18,10 @@ doCheck = false; }); + redis = super.redis.overrideAttrs (_old: { + doCheck = false; + }); + haskellPackages = super.haskellPackages.override { overrides = hsSelf: hsSuper: { crypton = super.haskell.lib.overrideCabal hsSuper.crypton (oa: {