dynix/modules/dynamicism/gotosocial.nix
2026-02-10 14:20:46 +01:00

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
'';
};
}