working on harmonia
This commit is contained in:
parent
1f466b63d3
commit
8dba8e7ce8
20 changed files with 556 additions and 90 deletions
|
|
@ -3,17 +3,20 @@ let
|
|||
cfg = config.dynamicism.for.gotosocial;
|
||||
|
||||
settingsFormat = pkgs.formats.yaml { };
|
||||
configFile = settingsFormat.generate "gotosocial-override.yml" config.services.gotosocial.settings;
|
||||
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
|
||||
'';
|
||||
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; };
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue