{ pkgs, lib, config, ... }: let settingsFormat = pkgs.formats.yaml { }; configFile = settingsFormat.generate "gotosocial-override.yml" config.services.gotosocial.settings; in { dynamicism.for.gotosocial = { source-options = [ "services.gotosocial.settings" ]; unitDropins."gotosocial.service" = pkgs.writeTextFile { name = "gotosocial-override.conf"; text = '' [Service] ExecStart= ExecStart=${lib.getExe' pkgs.gotosocial "gotosocial"} --config-path ${configFile} start ''; passthru = { inherit configFile; }; }; }; }