19 lines
546 B
Nix
19 lines
546 B
Nix
{ pkgs, lib, config, ... }:
|
|
let
|
|
cfg = config.dynamicism.for.gotosocial;
|
|
|
|
settingsFormat = pkgs.formats.yaml { };
|
|
in
|
|
{
|
|
dynamicism.for.gotosocial = {
|
|
source-options = [ "services.gotosocial.settings" ];
|
|
|
|
configFile = settingsFormat.generate "gotosocial-overrde.yml" config.services.gotosocial.settings;
|
|
|
|
unitDropins."gotosocial.service" = pkgs.writeText "gotosocial-override.conf" ''
|
|
[Service]
|
|
ExecStart=
|
|
ExecStart=${lib.getExe' pkgs.gotosocial "gotosocial"} --config-path ${cfg.configFile} start
|
|
'';
|
|
};
|
|
}
|