From 89b5e8145dffab5c71b512ca8274120cb186a242 Mon Sep 17 00:00:00 2001 From: Colin Date: Sun, 20 Aug 2023 05:01:24 +0000 Subject: [PATCH] lemmy: pict-rs: remove unused options --- hosts/by-name/servo/services/lemmy.nix | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/hosts/by-name/servo/services/lemmy.nix b/hosts/by-name/servo/services/lemmy.nix index e91cf71f..e3175161 100644 --- a/hosts/by-name/servo/services/lemmy.nix +++ b/hosts/by-name/servo/services/lemmy.nix @@ -69,23 +69,12 @@ in { #v DO NOT REMOVE: defaults to 0.3, instead of latest, so always need to explicitly set this. services.pict-rs.package = pict-rs; + # pict-rs configuration is applied in this order: # - via toml # - via env vars (overrides everything above) # - via CLI flags (overrides everything above) # some of the CLI flags have defaults, making it the only actual way to configure certain things even when docs claim otherwise. - systemd.services.pict-rs.environment = { - # lemmy's media-hosting service - # docs: - - # PICTRS__MEDIA__VIDEO__ENABLE = "1"; # enable webm and mp4 - # PICTRS__MEDIA__VIDEO__ALLOW_AUDIO = "1"; - # PICTRS__MEDIA__VIDEO__MAX_FRAME_COUNT = builtins.toString (30*60*60); # ~ 1 hr - # PICTRS__REPO__CACHE_CAPACITY = builtins.toString (128*1024*1024); # default is 64 MiB, but RAM is cheap here - - # PICTRS__MEDIA__SKIP_VALIDATE_IMPORTS = "1"; # to disable media validation - # PICTRS__OLD_DB__PATH = config.services.pict-rs.dataDir; #< needed only for 0.3 -> 0.4 migration - }; # CLI args: systemd.services.pict-rs.serviceConfig.ExecStart = lib.mkForce (lib.concatStringsSep " " [ "${lib.getBin pict-rs}/bin/pict-rs run"