dynix/modules/dynamicism/gotosocial.nix

20 lines
546 B
Nix
Raw Normal View History

2026-02-10 14:19:55 +01:00
{ 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
'';
};
}