1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-01 08:49:44 +01:00
home-manager/tests/modules/services/barrier/basic-configuration.nix

18 lines
342 B
Nix
Raw Normal View History

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