1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-22 09:49:47 +01:00
home-manager/tests/modules/services/barrier/basic-configuration.nix
Kritnich 1ebbef8642
barrier: change enableCrypto behaviour
`--enable-crypto` is deprecated because crypto is now enabled by default.
`--disable-crypto` should be used instead.
Fixes https://github.com/nix-community/home-manager/issues/3001
2022-06-21 21:59:19 +02:00

19 lines
394 B
Nix

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