diff options
Diffstat (limited to '')
-rw-r--r-- | modules/nixos/vhack/peertube/default.nix | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/modules/nixos/vhack/peertube/default.nix b/modules/nixos/vhack/peertube/default.nix index 193b628..df54336 100644 --- a/modules/nixos/vhack/peertube/default.nix +++ b/modules/nixos/vhack/peertube/default.nix @@ -1,7 +1,6 @@ { config, lib, - pkgs, ... }: let cfg = config.vhack.peertube; @@ -16,8 +15,8 @@ in { services.peertube = { enable = true; - localDomain = "peertube.vhack.eu"; configureNginx = true; + localDomain = "peertube.vhack.eu"; smtp = { createLocally = true; @@ -34,6 +33,13 @@ in { secrets.secretsFile = "${config.age.secrets.peertubeGeneral.path}"; }; + # The `configureNginx` option does not do this for some reason + # TODO(@bpeetz): Find out why <2024-06-27> + services.nginx.virtualHosts."${config.services.peertube.localDomain}" = { + enableACME = true; + forceSSL = true; + }; + age.secrets = { peertubeGeneral = { file = ./secrets/general.age; |