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

17 lines
350 B
Nix
Raw Normal View History

{ config, pkgs, ... }: {
config = {
services.pbgopy.enable = true;
test.stubs.pbgopy = { };
nmt.script = ''
serviceFile=home-files/.config/systemd/user/pbgopy.service
assertFileExists $serviceFile
assertFileContains $serviceFile \
'ExecStart=@pbgopy@/bin/pbgopy serve --port 9090 --ttl 24h'
'';
};
}