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. # Implementations.
config.dynamicism.for.gotosocial = let imports = [
cfg = config.dynamicism.for.gotosocial; ./gotosocial.nix
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
'';
};
} }

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

View file

@ -27,5 +27,5 @@
}; };
in lib.makeScope lib.callPackageWith (self: { in lib.makeScope lib.callPackageWith (self: {
basic = runDynixTest ./basic/test.nix; gotosocial = runDynixTest ./gotosocial/test.nix;
}) })