home-manager/tests/modules/services/pbgopy/service.nix

17 lines
350 B
Nix
Raw Normal View History

2020-12-03 02:55:37 +00:00
{ config, pkgs, ... }: {
config = {
services.pbgopy.enable = true;
test.stubs.pbgopy = { };
2020-12-03 02:55:37 +00:00
nmt.script = ''
serviceFile=home-files/.config/systemd/user/pbgopy.service
assertFileExists $serviceFile
assertFileContains $serviceFile \
2021-04-22 21:46:05 +00:00
'ExecStart=@pbgopy@/bin/pbgopy serve --port 9090 --ttl 24h'
2020-12-03 02:55:37 +00:00
'';
};
}