tests.basic -> tests.gotosocial

This commit is contained in:
Qyriad 2026-02-10 14:19:55 +01:00
parent 68e9b9a1e4
commit 1f466b63d3
9 changed files with 23 additions and 16 deletions

View file

@ -120,19 +120,7 @@ in
);
# Implementations.
config.dynamicism.for.gotosocial = let
cfg = config.dynamicism.for.gotosocial;
in {
source-options = [
"services.gotosocial.settings"
];
configFile = settingsFormat.generate "gotosocial-override.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
'';
};
imports = [
./gotosocial.nix
];
}

View file

@ -0,0 +1,19 @@
{ 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
'';
};
}