home-manager/tests/modules/services/barrier/basic-configuration.nix

18 lines
342 B
Nix
Raw Normal View History

2023-05-12 22:08:12 +00:00
{ ... }:
{
2023-05-12 22:08:12 +00:00
services.barrier.client = {
enable = true;
server = "testServer";
};
2023-05-12 22:08:12 +00:00
test.stubs.barrier = { };
2023-05-12 22:08:12 +00:00
nmt.script = ''
clientServiceFile=home-files/.config/systemd/user/barrierc.service
2023-05-12 22:08:12 +00:00
assertFileExists $clientServiceFile
assertFileRegex $clientServiceFile 'ExecStart=.*/bin/barrierc -f testServer'
'';
}