From 1ebbef8642c511b289730e3985ec1d53c5c48908 Mon Sep 17 00:00:00 2001 From: Kritnich Date: Tue, 7 Jun 2022 21:51:06 +0200 Subject: [PATCH] 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 --- modules/services/barrier.nix | 2 +- tests/modules/services/barrier/basic-configuration.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/services/barrier.nix b/modules/services/barrier.nix index 21364b7a3..b619cb287 100644 --- a/modules/services/barrier.nix +++ b/modules/services/barrier.nix @@ -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 ]); }; diff --git a/tests/modules/services/barrier/basic-configuration.nix b/tests/modules/services/barrier/basic-configuration.nix index 03b1beae7..d08342856 100644 --- a/tests/modules/services/barrier/basic-configuration.nix +++ b/tests/modules/services/barrier/basic-configuration.nix @@ -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' ''; }; }