1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 11:36:05 +01:00
home-manager/tests/modules/services/pantalaimon/basic-configuration.nix
2025-05-07 10:03:21 -05:00

27 lines
681 B
Nix

{ config, ... }:
{
config = {
services.pantalaimon = {
enable = true;
package = config.lib.test.mkStubPackage { outPath = "@pantalaimon@"; };
settings = {
Default = {
LogLevel = "Debug";
SSL = true;
};
local-matrix = {
Homeserver = "https://matrix.org";
ListenAddress = "127.0.0.1";
ListenPort = 8008;
};
};
};
nmt.script = ''
serviceFile=home-files/.config/systemd/user/pantalaimon.service
assertFileExists $serviceFile
assertFileRegex $serviceFile 'ExecStart=@pantalaimon@/bin/pantalaimon -c /nix/store/.*-pantalaimon.conf'
'';
};
}