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
This commit is contained in:
Kritnich 2022-06-07 21:51:06 +02:00 committed by Robert Helgesson
parent 206ded407e
commit 1ebbef8642
No known key found for this signature in database
GPG Key ID: 36BDAA14C2797E89
2 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ in {
Service.ExecStart = with cfg.client;
toString ([ "${pkgs.barrier}/bin/barrierc" ]
++ optional (name != null) "--name ${name}"
++ optional enableCrypto "--enable-crypto"
++ optional (!enableCrypto) "--disable-crypto"
++ optional enableDragDrop "--enable-drag-drop" ++ extraFlags
++ [ server ]);
};

View File

@ -13,7 +13,7 @@
clientServiceFile=home-files/.config/systemd/user/barrierc.service
assertFileExists $clientServiceFile
assertFileRegex $clientServiceFile 'ExecStart=.*/bin/barrierc --enable-crypto -f testServer'
assertFileRegex $clientServiceFile 'ExecStart=.*/bin/barrierc -f testServer'
'';
};
}